Convert double array into column vector

38 visualizaciones (últimos 30 días)
egg
egg el 30 de Jul. de 2019
Comentada: egg el 30 de Jul. de 2019
Hello!
How can I convert the data format below ( f or f(:) ) into the data format in the other image (columns) ?
Screen Shot 2019-07-30 at 1.38.10 PM.png
Screen Shot 2019-07-30 at 1.36.46 PM.png
  2 comentarios
James Tursa
James Tursa el 30 de Jul. de 2019
It is unclear to me what format you are starting with and what format you want to end up with.
egg
egg el 30 de Jul. de 2019
I ended up figuring it out!
just had to do : [f(1,:) ]

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 30 de Jul. de 2019
reshape(f,[],1) % column vector
reshape(f,1,1,[]) % 3D

Más respuestas (2)

the cyclist
the cyclist el 30 de Jul. de 2019
I'm not clear on the same point that James mentioned, but I'm going to guess that the reshape command is what you need.

James Tursa
James Tursa el 30 de Jul. de 2019
Maybe one of these?
reshape(f,1,[])
f(:).'

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by