How to fix equation code error
1 次查看(过去 30 天)
显示 更早的评论
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
2023-4-7
From equation standpoint, the formula is correct. Apart from what Steven has mentioned below, are you facing any other problem?
回答(1 个)
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))
Nowhere in this code do you define the variables rho or ustar.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!