is there a function that calculates the no. of rows or cols

조회 수: 1 (최근 30일)
mary
mary 2013년 12월 2일
댓글: Sean de Wolski 2013년 12월 2일
a=[1 1 1;1 1 1;1 1 1;1 1 1]
no of rows=4
col=3

채택된 답변

sixwwwwww
sixwwwwww 2013년 12월 2일
Dear mary, use
[row, col] = size(a)

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 12월 2일
[r,c] = size(a);
For more info:
doc size

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by