Borrar filtros
Borrar filtros

function discrete Time-integrate with a variable

2 visualizaciones (últimos 30 días)
sia
sia el 6 de Sept. de 2013
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 comentario
Zhang lu
Zhang lu el 6 de Sept. de 2013
Editada: Zhang lu el 6 de Sept. de 2013
Do u mean ?
syms x
f='sin(10-x*a)';
int(f,x,0,5)

Iniciar sesión para comentar.

Respuestas (1)

Roger Stafford
Roger Stafford el 6 de Sept. de 2013
For functions which are only known at discrete points, use matlab's 'trapz' function.
  1 comentario
sia
sia el 7 de Sept. de 2013
But i wanna integrate it in simulink. Is there a block to do it???

Iniciar sesión para comentar.

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by