Effacer les filtres
Effacer les filtres

Subscripted assignment dimension mismatch

4 vues (au cours des 30 derniers jours)
Naor David
Naor David le 25 Nov 2017
Commenté : Naor David le 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?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by