convert 262144x1 into 1x262144.
1 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
KSSV
2020-9-27
If A is your array..just transpose it.
iwant = A'
Read about transpose.
4 个评论
Walter Roberson
2020-9-27
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!