Finding solution of a complex equation

5 visualizzazioni (ultimi 30 giorni)
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!!

Risposta accettata

Vineet
Vineet il 24 Apr 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 Commento
Naveen Ramesh
Naveen Ramesh il 24 Apr 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 !!!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by