What does \\\r\n mean ?
Mostrar comentarios más antiguos
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)
and
-\\\r\n 1578177954729427/1073741824
What is this mysterious operator ? I tried using vpa(), but still the operator got promped. However, using
vpa(ans,2)
the operator disappeared. I guess it has something to do with numerical accuracy in the symbolic math engine...
6 comentarios
KSSV
el 25 de Abr. de 2017
Copy the full code.
Stephen23
el 25 de Abr. de 2017
Have a look at the "Special Characters" listed here:
Steven Lord
el 25 de Abr. de 2017
I agree with KSSV. Please post a small sample of code with which you can reproduce this behavior so that we can try to reproduce the behavior as well.
Ronny Landsverk
el 25 de Abr. de 2017
Jan
el 25 de Abr. de 2017
Does it shed any light to your problem that \r\n is the standard DOS line break?
Ronny Landsverk
el 25 de Abr. de 2017
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 26 de Abr. de 2017
3 votos
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.
1 comentario
Walter Roberson
el 7 de Mayo de 2017
See my more detailed explanation at https://www.mathworks.com/matlabcentral/answers/337896-odd-r-n-output-from-symbolic-multiplication#answer_265002
Mohamed Abdelhamid
el 7 de Mayo de 2017
1 voto
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.
1 comentario
Walter Roberson
el 7 de Mayo de 2017
That will not generally work; see https://www.mathworks.com/matlabcentral/answers/337896-odd-r-n-output-from-symbolic-multiplication#answer_265002
Categorías
Más información sobre Special Values en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!