Filter löschen
Filter löschen

what doas this operator /// mean in matlab ?

1 Ansicht (letzte 30 Tage)
Waleed new
Waleed new am 28 Mär. 2018
Kommentiert: Waleed new am 28 Mär. 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 Kommentar
Waleed new
Waleed new am 28 Mär. 2018
this is a part of the result which contains ///

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 28 Mär. 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 Kommentare
Walter Roberson
Walter Roberson am 28 Mär. 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 am 28 Mär. 2018
thank you Walter Roberson ,it's very helpfull

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by