solving for a single unknown
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Mariam Maroof
am 7 Okt. 2019
Bearbeitet: Mariam Maroof
am 7 Okt. 2019
10 Kommentare
Star Strider
am 7 Okt. 2019
It would definitely help to have values for the constants. I cannot help you without them.
Mariam Maroof
am 7 Okt. 2019
Star Strider
am 7 Okt. 2019
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
am 7 Okt. 2019
Mariam Maroof
am 7 Okt. 2019
Star Strider
am 7 Okt. 2019
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
am 7 Okt. 2019
Star Strider
am 7 Okt. 2019
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
am 8 Okt. 2019
Star Strider
am 8 Okt. 2019
As always, my pleasure.
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

