Error calling 'int'. This call-site passes more inputs to this function than it can accept.
29 ビュー (過去 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 )
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!