Homework_4_Solutions_MATLAB

Homework_4_Solutions_MATLAB - 170.0000 2.9671 180.0000...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
%ECE 280 Homework #4, 2/11/08 %Chapter 2 Problems: 4, 5, 7, 10 %4 a.) r=5; pi*r^2 ans = 78.5398 %4 b.) r=10; 4*pi*r^2 ans = 1.2566e+003 %4 c.) r=2; 4/3*pi*r^3 ans = 33.5103 %5 a.) r=3; h=[1,5,12]; pi*r^2*h ans = 28.2743 141.3717 339.2920 %5 b.) b=[2,4,6]; h=12; Area = 1/2*b*h Area = 12 24 36 %5 c.) vertdim=10; Volume = Area*vertdim Volume = 120 240 360 %7 degrees = 0:10:360; radians = degrees*(pi/180); %Present the results in a table [degrees', radians'] ans = 0 0 10.0000 0.1745 20.0000 0.3491
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
30.0000 0.5236 40.0000 0.6981 50.0000 0.8727 60.0000 1.0472 70.0000 1.2217 80.0000 1.3963 90.0000 1.5708 100.0000 1.7453 110.0000 1.9199 120.0000 2.0944 130.0000 2.2689 140.0000 2.4435 150.0000 2.6180 160.0000 2.7925
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 170.0000 2.9671 180.0000 3.1416 190.0000 3.3161 200.0000 3.4907 210.0000 3.6652 220.0000 3.8397 230.0000 4.0143 240.0000 4.1888 250.0000 4.3633 260.0000 4.5379 270.0000 4.7124 280.0000 4.8869 290.0000 5.0615 300.0000 5.2360 310.0000 5.4105 320.0000 5.5851 330.0000 5.7596 340.0000 5.9341 350.0000 6.1087 360.0000 6.2832 %10 g=9.8; %time from 0 to 15 seconds with increments of 1 t=0:1:15; d=(1/2)*g*t.^2; %Table of time versus distance traveled table = [t',d'] table = 1.0e+003 * 0 0 0.0010 0.0049 0.0020 0.0196 0.0030 0.0441 0.0040 0.0784 0.0050 0.1225 0.0060 0.1764 0.0070 0.2401 0.0080 0.3136 0.0090 0.3969 0.0100 0.4900 0.0110 0.5929 0.0120 0.7056 0.0130 0.8281 0.0140 0.9604 0.0150 1.1025 diary off...
View Full Document

Page1 / 3

Homework_4_Solutions_MATLAB - 170.0000 2.9671 180.0000...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online