Please help me with this as soon as possible
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 25 Jun. 2020
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.
Antworten (1)
Rasul Khan
am 25 Jun. 2020
Bearbeitet: Walter Roberson
am 25 Jun. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!