how to code equation this equation?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Cesar Cardenas
am 15 Mär. 2022
2 Kommentare
Voss
am 15 Mär. 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
am 15 Mär. 2022
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


