How to convert [2x1 double] for [1x2 double]?
34 次查看(过去 30 天)
显示 更早的评论
I have an result in Worspace with [2x1 double], need for result in format [1x2 double]. is possible?.
0 个评论
采纳的回答
Pierre845
2018-8-29
You need to transpose the result.
if X is your result, do
X = X';
1 个评论
Stephen23
2018-8-29
编辑:Stephen23
2018-8-29
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.
更多回答(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!