Clear Filters
Clear Filters

what doas this operator /// mean in matlab ?

1 view (last 30 days)
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 ///

Accepted Answer

Walter Roberson
Walter Roberson on 28 Mar 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 Comments
Walter Roberson
Walter Roberson on 28 Mar 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 on 28 Mar 2018
thank you Walter Roberson ,it's very helpfull

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!