필터 지우기
필터 지우기

Error: This statement is incomplete

조회 수: 12 (최근 30일)
Nicholas
Nicholas 2014년 9월 28일
답변: Star Strider 2014년 9월 28일
Hello everybody, Trying to evaluate some basic lab data to do some analysis w/ MATLAB.
if true
% %%Import data, load in full blocks from left to right
uiimport('Lab1Data.xlsx')
Calculate Torque using T=Force * Moment Arm, Moment Arm = 6.0"
Arm=(6/39.37);
Torquelong=Favg.*Arm; %%1m=39.37"
Torqueshort=Favg1.*Arm; %%both units now N*m
Displays Torques
T=table(Favg,Torquelong,Favg1,Torqueshort)
"Calculate Power using Power = Torque * Angular Velocity."
"Angular Velocity = (Revolutions/second)*(2pi radians/1 Revolution)" "Units are N*m*rad/s, or Watts, so need to convert by 1hp=745.699872W"
Avlong=(revs./Time).*(2*pi);
Avshort=(revs1./Time1).*(2*pi);
Plong=(Torquelong.*Avlong)./745.699872
Pshort=(Torqueshort.*Avshort ./745.699872
end
When I run the last section, it says the statement is incomplete, even though it is just a section break marker. Any ideas?

채택된 답변

Star Strider
Star Strider 2014년 9월 28일
You’re missing a parenthesis. See if it this improves things:
Pshort=(Torqueshort.*Avshort) ./745.699872

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tires and Vehicles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by