Error calling 'int'. This call-site passes more inputs to this function than it can accept.
조회 수: 20 (최근 30일)
이전 댓글 표시
I'm trying to make a user defined function for integration. It gives an error Error calling 'int'. This call-site passes more inputs to this function than it can accept.
My code is:
function y = fcn(u,a,b)
%#codegen
y=int(u,a,b)
end
where a = t-0.1 ;
b=t
t is input from clock
Please help how to resolve this.
댓글 수: 4
Walter Roberson
2018년 10월 28일
Are you sure you want to do symbolic integration?
What I suspect is that you want to use trapz()
답변 (1개)
madhan ravi
2018년 10월 28일
편집: madhan ravi
2018년 10월 28일
what happens when you do this :
y = integral ( @(t) u,a,b )
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!