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!