필터 지우기
필터 지우기

Please help me with this as soon as possible

조회 수: 1 (최근 30일)
carson yeoh
carson yeoh 2020년 6월 25일
편집: Walter Roberson 2020년 6월 25일
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 .
  댓글 수: 6
carson yeoh
carson yeoh 2020년 6월 25일
I tried to calculate separetly and I got different answer for each column
but then I tried every way to combine it, i will get wab
Walter Roberson
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
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

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by