Hello, I'm trying to do the following assignment and get an error: "Subscripted assignment dimension mismatch" "masking" is new veriable and this is the first assignment to it. "indx" is as follow: 300x10x2011 logical
masking(:,:,1)=indx;
what is wrong?

 채택된 답변

KL
KL 2017년 11월 25일

0 개 추천

You're trying to assign a 3D matrix into a 2D one. Try,
masking(:,:,:,1) = indx;

댓글 수: 1

Naor David
Naor David 2017년 11월 25일
Thanks a lot! Helped me understand my mistake...:)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2017년 11월 25일

댓글:

2017년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by