Different order Bessel function in each column of an array
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there a way of calculating the array J, below, without using a loop?
X = 0:0.1:20;
J = zeros(5,201);
for i = 0:4
J(i+1,:) = besselj(i,X);
end
0 commentaires
Réponse acceptée
Steven Lord
le 19 Mar 2018
From the documentation, "If nu and Z are arrays of the same size, the result is also that size." Make arrays for nu and Z using meshgrid.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Bessel functions dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!