Finding solution of a complex equation

1 vue (au cours des 30 derniers jours)
Naveen Ramesh
Naveen Ramesh le 24 Avr 2013
hi guys, I need to find the result of teta and plot it against s_y . but it involves a set of complex equations and i am not able to figure out how to do that. Using syms command to solve the equation didnt work as it was not installed. This is what i want solved:
teta=acosd((((R^2-((R*u*sind(teta))/(R-d))^2)^0.5*(R-d))/(R*u))-(s_y/u));
In here, R,d and u are constants and s_y is defined as
s_y=0:0.1:35;
and i need to plot between
plot(s_y,teta);
I am not abklle to figure the problem out because the RHS also contains the unknown quantity ''teta'' and matlab is not solving the equation. Any help would be greatly appreciated as I am new to matlab and jus learning the bbasics has started.. As always thanks a ton!!

Réponse acceptée

Vineet
Vineet le 24 Avr 2013
Since a plot is all you require, initially assign zero to teta. After that, run a loop from 0 to 35 with an interval of 0.1.
teta=0;
for s_y=0:0.1:35
teta=acosd((((R^2-((R*u*sind(teta))/(R-d))^2)^0.5*(R-d))/(R*u))-(s_y/u));
plot(s_y, teta);
hold all
end
  1 commentaire
Naveen Ramesh
Naveen Ramesh le 24 Avr 2013
Thanks Vineet, The plot comes. But i also need to find the minimum of teta at some s_y and for which i will need the values of teta also !!! how do i do that ?? Thanks in advance !!!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by