What does \\\r\n mean ?
156 views (last 30 days)
Using symbolic variables in matrix-multiplication with elements consisting of trig-functions I came across a symbol that I have not seen before. It shows up in two elements in the result:
38769523591\\\r\n65965*Dq3*sin(2*q2 + q3)
What is this mysterious operator ? I tried using vpa(), but still the operator got promped. However, using
the operator disappeared. I guess it has something to do with numerical accuracy in the symbolic math engine...
Jan on 25 Apr 2017
In format specificators e.g. in sprintf the backslash is used as escape character: the following character get a special meaning: \r is a "carriage return" and \n a "new line". Both together are used by DOS applications as line break. To get a backslash charater, \\ is used.
Remark: You can ask an internet search engine for "\r \n" also. I like this forum very much, but e.g. Google finds an answer in less than a second.
More Answers (2)
Walter Roberson on 26 Apr 2017
It is a bug in the output of long symbolic expressions. I submitted a report about it a few months ago. It would not hurt to submit a report yourself, so that they know I am not the only person affected.
Mohamed Abdelhamid on 7 May 2017
I did encounter that "\\\r\n" in some really long symbolic expressions. All I did was use find/replace to replace it with nothing. It did work pretty nice after that and the calculations were indeed correct.