Azzera filtri
Azzera filtri

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

39 visualizzazioni (ultimi 30 giorni)
I have an result in Worspace with [2x1 double], need for result in format [1x2 double]. is possible?.

Risposta accettata

Pierre845
Pierre845 il 29 Ago 2018
You need to transpose the result.
if X is your result, do
X = X';
  1 Commento
Stephen23
Stephen23 il 29 Ago 2018
Modificato: Stephen23 il 29 Ago 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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by