필터 지우기
필터 지우기

function discrete Time-integrate with a variable

조회 수: 2 (최근 30일)
sia
sia 2013년 9월 6일
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
Zhang lu
Zhang lu 2013년 9월 6일
편집: Zhang lu 2013년 9월 6일
Do u mean ?
syms x
f='sin(10-x*a)';
int(f,x,0,5)

댓글을 달려면 로그인하십시오.

답변 (1개)

Roger Stafford
Roger Stafford 2013년 9월 6일
For functions which are only known at discrete points, use matlab's 'trapz' function.
  댓글 수: 1
sia
sia 2013년 9월 7일
But i wanna integrate it in simulink. Is there a block to do it???

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by