express function as function handles
Mostra commenti meno recenti
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 Commento
Walter Roberson
il 16 Apr 2019
It would be more efficient to initialize
tmp = zeros(1, length(x));
Risposte (1)
per isakson
il 16 Apr 2019
Modificato: per isakson
il 16 Apr 2019
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!