getting the variable size value

조회 수: 1 (최근 30일)
ramakrishna bathini
ramakrishna bathini 2011년 6월 14일
I have a variable of size x*y .what matlab command is used to get the x value.

채택된 답변

Alex Taylor
Alex Taylor 2011년 6월 14일
[R,C] = size(A);
doc size

추가 답변 (1개)

Ned Gulley
Ned Gulley 2011년 6월 14일
To find the size, use size.
[m,n] = size(X)
m = size(X,dim)
So to find the number of rows, you can say
numRows = size(X,1)
  댓글 수: 1
ramakrishna bathini
ramakrishna bathini 2011년 6월 14일
thanks for the reply a=size(X,1) is the command i was looking for...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by