express function as function handles

2 次查看(过去 30 天)
How can i express this function as a function handle @dints
function f = dint2(x, y)
tmp=[];
for ii=1:1:length(x)
tmp(ii)=x(ii) * y^2 *density(x(ii),y);
end
f=tmp;
end

回答(1 个)

per isakson
per isakson 2019-4-16
编辑:per isakson 2019-4-16
fh = @dint2;
What's density() ?

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by