Is it the correct way to extract the value for the logical matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
I got the following local matrix and now I want to extract the values for the logical 1, but when I do so, I'm getting an error which is
Array indices must be positive integers or logical values.
[X,Y]= meshgrid(T2{:,5},T1{:,5});
A = X(idx);
B = Y(idx);
A = X(idx);
'Array indices must be positive integers or logical values
X and Y has the same size
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!