Info
此问题已关闭。 请重新打开它进行编辑或回答。
Problem with function
1 次查看(过去 30 天)
显示 更早的评论
HI Guys,
i have to solve the following equation with matlab (numerically) but i don´t get any solution...could you help me out??
50 = R*cos^2((pi*x)/l)
I have all the parameter and i just need to solve it for x...
Thanks
3 个评论
Walter Roberson
2011-9-30
What strange result does it give?
Have you tried
simple(y0)
after the solve() ?
回答(2 个)
Ajay Kumar
2011-9-29
Matlab would not return the value of X if you do the following:
50=R*cos^2((pi*X)/I)
You can probably try:
%Assign values
R = 1; % Replace these values with desired value
I = 1;
X= (I/pi)*acos(sqrt(50/R))
This makes sure that the result you want is on the Left hand Side and all the variables on the right hand side are already initialized.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!