How to fix equation code error
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to know if I'm coding this equation correctly?? I'm getting a error. Any help will be appreciated. Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1348809/image.png)
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 Kommentare
Dyuman Joshi
am 7 Apr. 2023
From equation standpoint, the formula is correct. Apart from what Steven has mentioned below, are you facing any other problem?
Antworten (1)
Steven Lord
am 7 Apr. 2023
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 Kommentare
Siehe auch
Kategorien
Mehr zu Mathematics and Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!