solving for a single unknown
古いコメントを表示
mve=2./pi.*atan((c1*cos(u.*theta)+c2.*cos(t.*theta)+d1.*cos(y.*theta)+d2.*cos(x.*theta))./(a1.*sin(s.*theta)+a2.*sin(r.*theta)+b1.*sin(w.*theta)+b2.*sin(v.*theta)))
I want to solve theta for a given range of value of mve where mve ranges from 0 to 1.
how can i do that?
value of all other variables are given.
採用された回答
その他の回答 (1 件)
Mariam Maroof
2019 年 10 月 7 日
編集済み: Mariam Maroof
2019 年 10 月 7 日
10 件のコメント
Star Strider
2019 年 10 月 7 日
It would definitely help to have values for the constants. I cannot help you without them.
Mariam Maroof
2019 年 10 月 7 日
Star Strider
2019 年 10 月 7 日
The code you posted runs without error.
What are ‘the correct values of kvp1 and kvp2 for each values of theta(v)’?
I have no idea what you are doing.
Mariam Maroof
2019 年 10 月 7 日
Mariam Maroof
2019 年 10 月 7 日
Star Strider
2019 年 10 月 7 日
I apologise, however I cannot help you with that. I do not see any obvious problems with your code. I do not know what you are doing in your code, so I can only assume it is correct. It appears to be far outside my areas of expertise, so I cannot determine from looking at it if there are any errors.
I note that in the top plot image, you are calculating three different y-values at every x-value. Potential problems could be missing or misplaced parentheses, or other sorts of errors that I cannot determine. It would be best for you to go through your code very carefully to be certain your code matches the equations you are coding.
Mariam Maroof
2019 年 10 月 7 日
Star Strider
2019 年 10 月 7 日
There could be an issue if the units are different, because the values of ‘kvp1’ and ‘kvp2’ could be different as the result. You could deal with this effectively using yyaxis (or the older plotyy) to plot them on the same values of the independent variable, while keeping the units defined separately for each dependent variable.
Mariam Maroof
2019 年 10 月 8 日
Star Strider
2019 年 10 月 8 日
As always, my pleasure.
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

