フィルターのクリア

How to fix equation code error

3 ビュー (過去 30 日間)
Cesar Cardenas
Cesar Cardenas 2023 年 4 月 7 日
編集済み: Torsten 2023 年 4 月 7 日
I would like to know if I'm coding this equation correctly?? I'm getting a error. Any help will be appreciated. Thanks.
nu = 1.5e-5;
ya = 9.7;
k = 0.41;
y = 2.3025e-03;
uT = (k.*rho.*nu).*((y.*ustar/nu) - ya.*tanh((y.*ustar/nu)/ya))
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 4 月 7 日
From equation standpoint, the formula is correct. Apart from what Steven has mentioned below, are you facing any other problem?
Torsten
Torsten 2023 年 4 月 7 日
編集済み: Torsten 2023 年 4 月 7 日
We are full of expectation to see the error message and the values of rho and ustar to evaluate the expression for uT.

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2023 年 4 月 7 日
nu = 1.5e-5;
ya = 9.7;
k = 0.41;
y = 2.3025e-03;
uT = (k.*rho.*nu).*((y.*ustar/nu) - ya.*tanh(y.*ustar/nu.*ya))
Unrecognized function or variable 'rho'.
Nowhere in this code do you define the variables rho or ustar.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by