Please help me with this as soon as possible
1 次查看(过去 30 天)
显示 更早的评论
Why do I get the same answer as 733 for all columns. The code I want is divide every single a with b so I use a./b but I end up getting all same 733. Why??? Please help .
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/321715/image.png)
6 个评论
Walter Roberson
2020-6-25
x = (r*sin(theta))/L;
Ok.
phi = asin(x);
asin() of a constant times sin(theta)... perhaps there is a trig identity that could be used, but it is not one of the common ones.
b = L*sin(phi);
phi is asin(x) and x = (r*sin(theta))/L so provided that r/L*sin(theta) happens to fail within the first period then sin(asin(x)) would be x, so for at least part of the theta range, L*sin(phi) -> L*sin(asin(x)) -> L*x -> L * r*sin(theta) / L -> r * sin(theta)
a = wab*r*sin(theta);
Look, there is an r*sin(theta) in there...
wbc = a./b
So wab*r*sin(theta) / (r * sin(theta)) -> wab
r/L is about 0.3 and 0.3*sin(theta) is going to be within the primary range for real-valued theta that is in the primary range.
回答(1 个)
Rasul Khan
2020-6-25
编辑:Walter Roberson
2020-6-25
wab =733;r=0.0405;L=0.13;
theta = 0:0.1:2*pi;
x = (r*sin(theta))/L;
phi = asin(x);
a = wab*r*sin(theta);
b = L*sin(phi);
wbc = a./b
If you look at your code and replace the value of phi you will get
b = L * x
And calculating a./b wil give you 'wab' like @KSSV mentioned here
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!