필터 지우기
필터 지우기

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 CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by