Borrar filtros
Borrar filtros

what doas this operator /// mean in matlab ?

1 visualización (últimos 30 días)
Waleed new
Waleed new el 28 de Mzo. de 2018
Comentada: Waleed new el 28 de Mzo. de 2018
syms p211 p212 p213 p221 p222 p223 p231 p232 p233 gamma p111 p112 p113 p121 p122 p123 p131 p132 p133 y7 y8 y9
T= -inv([p211 p212 p213 ;p221 p222 p223; p231 p232 p233]) * inv(diag([0.0098;0.0098;0.0176]))' * [p111 p112 p113 ;p121 p122 p123; p131 p132 p133]*[y7;y8;y9]
it returns a matrix 3x1 contains this operator ///
  1 comentario
Waleed new
Waleed new el 28 de Mzo. de 2018
this is a part of the result which contains ///

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Mzo. de 2018
That was a bug in some versions of MATLAB. It is not an operator: it is a representation of the character sequence \ followed by carriage return followed by linefeed, which the underlying symbolic engine uses to indicate continuation onto a new line. The interface was failing to remove those sequences from the output displayed.
  3 comentarios
Walter Roberson
Walter Roberson el 28 de Mzo. de 2018
It is a display artifact not present in the symbolic expression. It will not affect computation.
For display you can do
regexprep( char(T), '\\\\\\r\\n', '' )
but if you do this you will probably end up with something that starts with
matrix([...])
instead of clean output. But you can do
disp(char(arrayfun(@(EXPR) regexprep( char(EXPR), '\\\\\\r\\n', '' ), T, 'uniform', 0)))
Waleed new
Waleed new el 28 de Mzo. de 2018
thank you Walter Roberson ,it's very helpfull

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by