Borrar filtros
Borrar filtros

Finding solution of a complex equation

3 visualizaciones (últimos 30 días)
Naveen Ramesh
Naveen Ramesh el 24 de Abr. de 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!!

Respuesta aceptada

Vineet
Vineet el 24 de Abr. de 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 comentario
Naveen Ramesh
Naveen Ramesh el 24 de Abr. de 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 !!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by