Filter löschen
Filter löschen

Subscripted assignment dimension mismatch

4 Ansichten (letzte 30 Tage)
Naor David
Naor David am 25 Nov. 2017
Kommentiert: Naor David am 25 Nov. 2017
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?

Akzeptierte Antwort

KL
KL am 25 Nov. 2017
You're trying to assign a 3D matrix into a 2D one. Try,
masking(:,:,:,1) = indx;
  1 Kommentar
Naor David
Naor David am 25 Nov. 2017
Thanks a lot! Helped me understand my mistake...:)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by