Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have a variable in my program whose values are varying, how to import the values into the program?

1 回表示 (過去 30 日間)
SHIJINA P P
SHIJINA P P 2016 年 7 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have variables whose values are as in the attachment file, I need to import those values into my matlab program. The variables are Cd, Cl, Cm

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 7 月 15 日
Naming a function ans is going to lead to big problems! Programs have a right to expect that using ans will return the previously calculated answer instead of it accidentally invoking your ans routine. Please rename that!
There is no Cm in either of those files.
I do not recommend trying to import values from your ode objective function into your main routine. I recommend that instead you define the values in your main routine and import them into your ode objective function. See http://www.mathworks.com/help/matlab/math/parameterizing-functions.html
  2 件のコメント
SHIJINA P P
SHIJINA P P 2016 年 7 月 18 日
編集済み: SHIJINA P P 2016 年 7 月 18 日
Sir, These are the values of Cl, Cd and Cm
Walter Roberson
Walter Roberson 2016 年 7 月 18 日
You should probably create arrays for those and use interp2() to find the appropriate value to use at any one point.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by