필터 지우기
필터 지우기

How to fix equation code error

조회 수: 1 (최근 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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by