express function as function handles

5 views (last 30 days)
Bright Edison
Bright Edison on 16 Apr 2019
Commented: Walter Roberson on 16 Apr 2019
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

Answers (1)

per isakson
per isakson on 16 Apr 2019
Edited: per isakson on 16 Apr 2019
fh = @dint2;
What's density() ?

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!