Synthax for equation in script
Afficher commentaires plus anciens
I have to write this equation in matlab script

k and Delta are represented by linspace(r0) and linespace (r1)
It seems that the following does not work. Can someone give support
-sqrt((linspace(-r0, r0, 31).'+ linspace(-r1, r1, 31).'^2).'^2 + 4*(linspace(-r1, r1, 31).'^2)).';
Réponse acceptée
Plus de réponses (1)
r0 = 3;
r1 = 4;
delta = linspace(-r0,r0,31).';
k = linspace(-r1,r1,31).';
0.5*sqrt((delta+k.^2).^2+4*k.^2)
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!