getting the variable size value

I have a variable of size x*y .what matlab command is used to get the x value.

 채택된 답변

추가 답변 (1개)

Ned Gulley
Ned Gulley 2011년 6월 14일

0 개 추천

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...

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by