Indexing data on a grid
이전 댓글 표시
I have a variable VAR with a size of 360 x 180. I also have an index Ind (composed of 1 and 0) on the same size. How do I get a gridded data at the same size of VAR for data points where Ind == 1 (the rest of them will become NaN). Why doesn't the below work?
V = VAR(Ind);
V turns into a 1-column data, instead of the expected gridded data.
Thanks.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!