Different result between Matlab and mobile calculator. (Plz helpTT)

4 ビュー (過去 30 日間)
Kang san Lee
Kang san Lee 2020 年 10 月 16 日
コメント済み: Rik 2020 年 10 月 17 日
This function is designed to calculate a "Loss Factor" of Elbow in the pipe equipment consisted of Venturi meter, Orifice meter and Rotameter.
and the input data is like pictures below.
and the output from matlab is [-0.0720, 1.3425, 0.7478].
But it was a quite weird conclusion for me so I recalculated it by mobile calculator.
And my calculator made a result of -1.1168 for the first element of the matrix.
-0.0720 and -1.1168 are quite different from each other but I couldn't find what is the problem.
Though there was some strange results above this one, it is too large number so I can't tolerate it.
Plz take a look for my code and find some errors for me.TT

採用された回答

Durganshu
Durganshu 2020 年 10 月 16 日
編集済み: Durganshu 2020 年 10 月 16 日
Clearly, you have misplaced any bracket or operator while solving the problem in the calculator. Look for them.
I t could even be possible that you have written the equation in a wrong way. Please recheck the hand equations and teh equations written in the script.
The result would be same if there are no misplacements.
  7 件のコメント
Durganshu
Durganshu 2020 年 10 月 17 日
編集済み: Durganshu 2020 年 10 月 17 日
Your output values seem to be Q1, Q2, Q3, K_Ven, K_Dif, K_Ori, K_Elb. Are you getting all these values incorrect?
Rik
Rik 2020 年 10 月 17 日
Just a quick note: if you Mark an answer as accepted, that means your issue is solved, which will decrease the number of people looking into your question.

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by