How to resolve this Unexpected MATLAB expression?
Show older comments
Hello I'm making a school project and I'm not very familliar with matlab. Can anyone help me resolve this error?
The command is:
diff(sym('sin(x^2)/(1 + exp(x/17) + log(17 +x^4))'))R
Error: Unexpected MATLAB expression.
Answers (1)
John D'Errico
on 23 Feb 2017
0 votes
What is R at the end? Why do you think it belongs there? If it does not belong there, then do you think that may possibly be the unexpected MATLAB expression that is referred to in the error? :)
3 Comments
Martin Niko
on 23 Feb 2017
John D'Errico
on 23 Feb 2017
Edited: John D'Errico
on 23 Feb 2017
Why not try it without the R? What can it hurt? When you see an error message, look at the line in question, thinking about what it says. If the rest of the line makes sense, then...
Yes, R is indeed your problem.
Martin Niko
on 23 Feb 2017
Edited: Martin Niko
on 23 Feb 2017
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!