How to resolve this Unexpected MATLAB expression?

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.

2 Comments

What does the final "R" mean?
No idea, I removed it at now it says Warning: Explicit integral could not be found. I have attached my commands if you want to check it out. After R6 declaration starts the trouble.

Sign in to comment.

Answers (1)

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

I was thinking that this R can be the problem but I was not quite sure.
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.
Yes I tried, but I was not sure if this is the solution. Much thanks for you help :) The only problem now is that it says Warning: Explicit integral could not be found. I have attached my code, if you want to get the whole idea. After R6 declaration starts the trouble.

Sign in to comment.

Categories

Asked:

on 23 Feb 2017

Commented:

on 23 Feb 2017

Community Treasure Hunt

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

Start Hunting!