Subscripted assignment dimension mismatch

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?

 Respuesta aceptada

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

1 comentario

Naor David
Naor David el 25 de Nov. de 2017
Thanks a lot! Helped me understand my mistake...:)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Nov. de 2017

Comentada:

el 25 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by