How to convert [2x1 double] for [1x2 double]?
51 views (last 30 days)
Show older comments
Leandro B. Castellanos
on 29 Aug 2018
I have an result in Worspace with [2x1 double], need for result in format [1x2 double]. is possible?.
0 Comments
Accepted Answer
Pierre845
on 29 Aug 2018
You need to transpose the result.
if X is your result, do
X = X';
1 Comment
Stephen23
on 29 Aug 2018
Edited: Stephen23
on 29 Aug 2018
Note that this answer is not a general solution. The operator shown is the complex conjugate transpose '. If the data is complex (which this question does not specify), then this will give an incorrect output.
More Answers (0)
See Also
Categories
Find more on Numeric Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!