function discrete Time-integrate with a variable
Ältere Kommentare anzeigen
Hello,
I wanna to integrate a function with a variable.
E.g. f(x) = sin(10-x)
But i dont know how i can do it when i have a variable.
Can u guys help me???
THX
1 Kommentar
Do u mean ?
syms x
f='sin(10-x*a)';
int(f,x,0,5)
Antworten (1)
Roger Stafford
am 6 Sep. 2013
0 Stimmen
For functions which are only known at discrete points, use matlab's 'trapz' function.
1 Kommentar
sia
am 7 Sep. 2013
Kategorien
Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!