Why does size(X, 100) return 1?
이전 댓글 표시
Here is a code snippet
X = data(:, 1:2); % X is a 2 x 3 matrix for example
disp(size(X, 1)); % displays 2
disp(size(X, 2)); % displays 3
disp(size(X, 5)); % displays 1
disp(size(X, 100)); % displays 1
Why does anything that exceeds the matrix bounds return a 1? Thanks.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!