express function as function handles
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 16 Avr 2019
It would be more efficient to initialize
tmp = zeros(1, length(x));
Réponses (1)
per isakson
le 16 Avr 2019
Modifié(e) : per isakson
le 16 Avr 2019
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!