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

51 visualizaciones (últimos 30 días)
Leandro B. Castellanos
Leandro B. Castellanos el 29 de Ag. de 2018
Editada: Stephen23 el 29 de Ag. de 2018
I have an result in Worspace with [2x1 double], need for result in format [1x2 double]. is possible?.

Respuesta aceptada

Pierre845
Pierre845 el 29 de Ag. de 2018
You need to transpose the result.
if X is your result, do
X = X';
  1 comentario
Stephen23
Stephen23 el 29 de Ag. de 2018
Editada: Stephen23 el 29 de Ag. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numeric Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by