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!

