Finding solution of a complex equation
4 次查看(过去 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!!
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!