フィルターのクリア

what doas this operator /// mean in matlab ?

1 回表示 (過去 30 日間)
Waleed new
Waleed new 2018 年 3 月 28 日
コメント済み: Waleed new 2018 年 3 月 28 日
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 件のコメント
Waleed new
Waleed new 2018 年 3 月 28 日
this is a part of the result which contains ///

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 3 月 28 日
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 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 28 日
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 2018 年 3 月 28 日
thank you Walter Roberson ,it's very helpfull

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by