how to code equation this equation?
Show older comments
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.
Accepted Answer
More Answers (1)
Cesar Cardenas
on 15 Mar 2022
2 Comments
Voss
on 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
on 15 Mar 2022
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

