how to code equation this equation?
古いコメントを表示
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.
採用された回答
その他の回答 (1 件)
Cesar Cardenas
2022 年 3 月 15 日
2 件のコメント
Voss
2022 年 3 月 15 日
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
2022 年 3 月 15 日
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


