Error with int function

3 views (last 30 days)
Serhii A.
Serhii A. on 25 Oct 2020
Commented: Ameer Hamza on 29 Oct 2020
I write in matlab
I=int('(3*x.^2-1.2)/(x.^5+1)',2,3.2) And get error Check for missing argument or incorrect argument data type in call to function 'int'.

Accepted Answer

Ameer Hamza
Ameer Hamza on 25 Oct 2020
Pass the integrand as a symbolic expression
syms x
I = int((3*x.^2-1.2)/(x.^5+1),2,3.2)
  2 Comments
Serhii A.
Serhii A. on 28 Oct 2020
Thank you
Ameer Hamza
Ameer Hamza on 29 Oct 2020
I am glad to be of help!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!