How to convert [2x1 double] for [1x2 double]?

40 ビュー (過去 30 日間)
Leandro B. Castellanos
Leandro B. Castellanos 2018 年 8 月 29 日
編集済み: Stephen23 2018 年 8 月 29 日
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 Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by