フィルターのクリア

how to code equation

3 ビュー (過去 30 日間)
Cesar Cardenas
Cesar Cardenas 2023 年 2 月 28 日
編集済み: Voss 2023 年 2 月 28 日
Nu = (0.032.*(Pr).^(1/3)).*((rho.*Uinf.*x/mu).^(1/2)).*(1 -(x0/x).^(3/4).^(-1/3);
Hello, is this code right? not sure, any help will be appreciated thanks.
  2 件のコメント
Les Beckham
Les Beckham 2023 年 2 月 28 日
It looks like it might be right, but that depends on the size and class of all of the variables; are they scalars, vectors, 2d arrays, something else, integers, complex, double. The details matter.
Did you try to run the code? If so, what happened? If you got an error message, cut and paste all of the text of the error message into an edit of your question, or a new comment.
Since we can't see your Matlab workspace, we can't answer your question until you share more information.
Cesar Cardenas
Cesar Cardenas 2023 年 2 月 28 日
I have not run the code, but I see this on the workspace "parse error at EOL"
Nu = (0.032.*(Pr).^(1/3)).*((rho.*Uinf.*x/mu).^(1/2)).*(1 -(x0/x).^(3/4).^(-1/3);

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

採用された回答

Voss
Voss 2023 年 2 月 28 日
編集済み: Voss 2023 年 2 月 28 日
Nu = (0.032.*(Pr).^(1/3)).*((rho.*Uinf.*x/mu).^(1/2)).*(1 -(x0/x).^(3/4).^(-1/3);
% ^^ you need another closing parenthesis here
% ^ ^ ^ ^ ^ ^ extraneous parentheses (that don't affect the operation)
% ^^^^^ should be 0.332
After correcting those things:
Nu = 0.332.*Pr.^(1/3).*(rho.*Uinf.*x/mu).^(1/2).*(1 -(x0/x).^(3/4)).^(-1/3);
And some of those / may have to be ./, depending on whether x and/or mu are scalars. Doesn't hurt to just use ./

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by