how to rectify the error

1 visualización (últimos 30 días)
Annie micheal
Annie micheal el 4 de Oct. de 2017
Comentada: Jan el 4 de Oct. de 2017
i want to obtain the original image which is stored in Makeup_YMU.mat.The YMU images are stored in a matrix YMU_matrix 58500x604 uint8.when i execute the command img=reshape(YMU_matrix(i),[150 130 3]), i get the error,Subscript indices must either be real positive integers or logicals..

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Oct. de 2017
for ImageNumber = 1 : size(YMU_matrix, 2)
img=reshape(YMU_matrix(:, ImageNumber),[150 130 3]);
...
end
  2 comentarios
Annie micheal
Annie micheal el 4 de Oct. de 2017
Thanx a lot.. its working
Jan
Jan el 4 de Oct. de 2017
@Annie: If this solves your problem, please accept the answer. Thanks.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by