solving for a single unknown
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Mariam Maroof
il 7 Ott 2019
Modificato: Mariam Maroof
il 7 Ott 2019
10 Commenti
Star Strider
il 7 Ott 2019
It would definitely help to have values for the constants. I cannot help you without them.
Mariam Maroof
il 7 Ott 2019
Star Strider
il 7 Ott 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
il 7 Ott 2019
Mariam Maroof
il 7 Ott 2019
Star Strider
il 7 Ott 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
il 7 Ott 2019
Star Strider
il 7 Ott 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
il 8 Ott 2019
Star Strider
il 8 Ott 2019
As always, my pleasure.
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

