Finding solution of a complex equation

1 次查看(过去 30 天)
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!!

采纳的回答

Vineet
Vineet 2013-4-24
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 个评论
Naveen Ramesh
Naveen Ramesh 2013-4-24
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 !!!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by