how to code equation this equation?
Afficher commentaires plus anciens
not sure how to code this equation:

I have tried this:
nz = @(z) n(z0)*(Tz0/Tz)^(1+g).*exp(-uc(z))
but I think it is not right.
Réponse acceptée
Plus de réponses (1)
Cesar Cardenas
le 15 Mar 2022
2 commentaires
Voss
le 15 Mar 2022
You have an extraneous * there which is causing the error. Change that line to:
a = exp(1./(2*Hn)*z);
exp() is a function. Doing exp*(something) is the same as exp()*(something), i.e., calling exp() with no inputs, which is what the error is saying.
Cesar Cardenas
le 15 Mar 2022
Catégories
En savoir plus sur Matrix Indexing 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!


