convert 262144x1 into 1x262144.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sami ullah
el 27 de Sept. de 2020
Comentada: sami ullah
el 27 de Sept. de 2020
I have the following: 256x1 double, I want to convert it into 1x256 double. How it will be done?
for example if we have 5x1 double:
12
23
34
56
134
Now convert it into like this: 12 23 34 56 134
Respuesta aceptada
KSSV
el 27 de Sept. de 2020
If A is your array..just transpose it.
iwant = A'
Read about transpose.
4 comentarios
Walter Roberson
el 27 de Sept. de 2020
Yes, you can use reshape() for that, no problem. You can also use
reshape(A, 1, [])
which will automatically figure out the size of A.
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion 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!