Matlab_Lab
-
Upload
roshan-jaiswal -
Category
Documents
-
view
217 -
download
0
Transcript of Matlab_Lab
-
8/18/2019 Matlab_Lab
1/1
Assignment Matlab_Lab 1
1. Create Matlab code to perform the following calculations:
5.5
12
6
351
2*385
46
5/38)25(
96
54
3
42
2
2
22
∗+∗+
−+
−++
++
∗
−
2. (a) he !olume of a c"linder is πr2h. #e$ne r % & and h % '1 12*. +ind
the !olume of the c"linders.
(b) he area of a triangle is 1,2-base-height. #e$ne the base % '2 /* and
the height % 12 $nd the area of the triangles.
&. 0enerate a table of con!ersions from degrees to radians. he $rst line
should contain the !alues for ° the second line should contain the !alue of
1° and so on. he last line should contain the !alues for &/°.
. 0enerate a table of con!ersions from centimeters to inches. tart the
centimeter column at and increment b" 2 centimeters. he last line should
contain the !alue &cm.