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!

