9/28/2006

Problem #01:吳子青

>> % Matlab之工程應用 PROBLEM #1
>> % data : 9/21/2006
>> % student : 吳子青 R95622024
>>
>> % -------------------------------------------
>> % ** Question 1 **
>> clear
>> f=200; % f 拉力=200 (Kg)
>> d=20; % d 距離=20 (m)
>>
>> Power=f*d/60/0.101972 % Power 功率(kW)

Power =

653.7742

>> % A1: Power = 653.7742 (kW)

>> % --------------------------------------------
>> % ** Question 2 **
>> clear
>> res1=1; % resistors 1 = 1 (ohms)
>> res2=20; % resistors 2 = 20 (ohms)
>> res3=200; % resistors 3 = 200(ohms)
>> V=110; % voltage = 110 (V)
>>
>> I=V/(res1+res2+res3) % I : current (A)

I =

0.4977

>> w=I*V % w : power (w)

w =

54.7511

>> % A2: I= 0.4977(A) , power= 54.7511(w)

>> % --------------------------------------------
>> % ** Question 3 **
>> clear
>> a=650; %三角形第一邊 a=650(cm)
>> b=428; %三角形第二邊 b=428(cm)
>> c=282; %三角形第三邊 c=282(cm)
>>
>> s=(a+b+c)/2;
>> A=(s*(s-a)*(s-b)*(s-c))^(1/2) %A : 三角形面積 (cm^2)

A =

4.5233e+004

>> % A3: 三角形面積= 4.5233*10^4 (cm^2)

>> % --------------------------------------------
>> % ** Question 4 **
>> clear
>> heat_equ=25000; % heat dissipations from lighting & equipment
>> 25,000BTU/hr
>> hflux_wall=52000; % heat flux through wall & cellings 52,000BTU/hr
>> hflux_aera=84300; % heat flux through aerations 84,300BTU/hr
>>
>> n=(hflux_wall+hflux_aera-heat_equ)/600 % n=hog number

n =

185.5000

>> % A4: 在豬舍不致於過熱及最高飼養效率考量下 n=185 隻應該是最適合的情況

>> % --------------------------------------------
>> % ** Question 5 **
>> clear
>> L=4; % L: width of gate(ft)
>> H=0.9; % H: water head(ft)
>>
>> Q=3.33*(L-0.2*H)^(3/2) % Q: flow rate(cu. ft./s.)

Q =

24.8622

>> % A5: flow rate= 24.8622 (cu. ft./s.)
>>

沒有留言: