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?.

采纳的回答

Pierre845
Pierre845 2018-8-29
You need to transpose the result.
if X is your result, do
X = X';
  1 个评论
Stephen23
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.
The correct general solution is to use (and recommend) the transpose .' operator.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by