9/28/2006

PROBLEM #1 盧光亮

% Matlab之工程應用 PROBLEM #1
% date : 9/28/2006
% student : 盧光亮 R93622022
%---------- question 1-----------%
f=200; % f 拉力=200 (Kg)
d=20; % d 距離=20 (m)
power=f*d/0.101972/60/1000 % 單位(kW)

power =

0.6538

>> clear
>> %---------- question 2-----------%
R1=1; % resistors 1 = 1 (ohms)
R2=20; % resistors 2 = 20 (ohms)
R3=200; % resistors 3 = 200(ohms)
V=110; % voltage = 110 (V)
>> I=V/(R1+R2+R3)

I =

0.4977

>> W=110*I % 功率(W)

W =

54.7511



>> clear
>> %---------- question 3-----------%
a=6.50; %三角形第一邊 a=6.50(m)
b=4.28; %三角形第二邊 b=4.28(m)
c=2.82; %三角形第三邊 c=2.82(m)
>> s=(a+b+c)/2;
A=(s*(s-a)*(s-b)*(s-c))^(1/2) %A : 三角形面積 (m^2)

A =

4.5233

沒有留言: