| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Data Acquisition Toolbox |
| Contents | Index |
| Learn more about Data Acquisition Toolbox |
d = size(obj) [m1,m2,m3,...,mn] = size(obj) m = size(obj,dim) d = size(obj.Channel) [m1,m2,m3,...,mn] = size(obj.Channel) m = size(obj.Channel,dim) d = size(obj.Line) [m1,m2,m3,...,mn] = size(obj.Line) m = size(obj.Line,dim)
obj | A device object or array of device objects. |
dim | The dimension. |
obj.Channel | The channels contained by obj. |
obj.Line | The lines contained by obj. |
d | A two-element row vector containing the number of rows and columns in obj. |
m1,m2,m3,...,mn | Each dimension of obj is captured in a separate variable. |
m | The length of the dimension specified by dim. |
d = size(obj) returns the two-element row vector d = [m,n] containing the number of rows and columns in obj.
[m1,m2,m3,...,mn] = size(obj) returns the length of the first n dimensions of obj to separate output variables. For example, [m,n] = size(obj) returns the number of rows to m and the number of columns to n.
m = size(obj,dim) returns the length of the dimension specified by the scalar dim. For example, size(obj,1) returns the number of rows.
d = size(obj.Channel) returns the two-element row vector d = [m,n] containing the number of rows and columns in the channel group obj.Channel.
[m1,m2,m3,...,mn] = size(obj.Channel) returns the length of the first n dimensions of the channel group obj.Channel to separate output variables. For example, [m,n] = size(obj.Channel) returns the number of rows to m and the number of columns to n.
m = size(obj.Channel,dim) returns the length of the dimension specified by the scalar dim. For example, size(obj.Channel,1) returns the number of rows.
d = size(obj.Line) returns the two-element row vector d = [m,n] containing the number of rows and columns in the line group obj.Line.
[m1,m2,m3,...,mn] = size(obj.Line) returns the length of the first n dimensions of the line group obj.Line to separate output variables. For example, [m,n] = size(obj.Line) returns the number of rows to m and the number of columns to n.
m = size(obj.Line,dim) returns the length of the dimension specified by the scalar dim. For example, size(obj.Line,1) returns the number of rows.
Create the analog input object ai for a National Instruments board and add eight channels to it.
ai = analoginput('nidaq','Dev1');
ch = addchannel(ai,0:7);To find the size of the device object:
size(ai)
ans =
1 1To find the size of the channel group:
size(ch)
ans =
8 1![]() | showdaqevents | softscope | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |