MATlab wont do integrate command
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Olivia Hagedorn
am 24 Feb. 2019
Bearbeitet: Asad Mirza
am 24 Feb. 2019
Matlab only gives errors when the script is:
int(x)
%or
int(x,x)
%or
int(x+5,x)
I just want to get answers such as .5x^2, or .5x^2+5x.
The error is: Undefined function 'int' for input arguments of type 'double'.
I have Symbolic Math Toolbox Version8.2 (R2018b) running
0 Kommentare
Akzeptierte Antwort
Asad Mirza
am 24 Feb. 2019
Bearbeitet: Asad Mirza
am 24 Feb. 2019
You have to first initialize x as a symbolic variable. You can find more information and examples here.
syms x
f = .5*x^2
int(f)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Number Theory finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!