convert cell array to matrix

2 visualizaciones (últimos 30 días)
Fatin
Fatin el 10 de Dic. de 2014
Comentada: Star Strider el 10 de Dic. de 2014
I have a cell array of size 544 1 , how can I convert it to a matrix of dimension 151*101 without nan appear in the matrix?
  1 comentario
John D'Errico
John D'Errico el 10 de Dic. de 2014
Um, magic?
You give us no hint at all what is in those cells. So how can we possibly know how to convert it into an array of totally different size and shape?

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 10 de Dic. de 2014
I doubt if you can.
A matrix of size (151x101) has 15251 elements. Your vector has 544 elements. You have to fill the extra 14707 elements with something, and NaN is probably the best option.
  4 comentarios
Fatin
Fatin el 10 de Dic. de 2014
Thank you , I will try that.
Star Strider
Star Strider el 10 de Dic. de 2014
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical 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