Subscripted assignment dimension mismatch

2 visualizzazioni (ultimi 30 giorni)
Naor David
Naor David il 25 Nov 2017
Commentato: Naor David il 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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by