Filter löschen
Filter löschen

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

39 Ansichten (letzte 30 Tage)
Leandro B. Castellanos
Leandro B. Castellanos am 29 Aug. 2018
Bearbeitet: Stephen23 am 29 Aug. 2018
I have an result in Worspace with [2x1 double], need for result in format [1x2 double]. is possible?.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by