필터 지우기
필터 지우기

Subscripted assignment dimension mismatch

조회 수: 4 (최근 30일)
Naor David
Naor David 2017년 11월 25일
댓글: Naor David 2017년 11월 25일
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일
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개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by