14:440:127 Introduction to Computers for Engineers
Problems for students to attempt in Recitation 6
1.
x = [1 2 3 4 5] and y = [1.23
9.76
14.74
18.28
21.03]
Figure out the equation that best conveys the relationship between y and x.
(Hint: use semilogx,
semilogy, loglog plots and see which one looks like a straight line)
2.
x = [1 2 3 4 5] and y = [28.86
640.57
14200
316000
7010000]
Figure out the equation that best conveys the relationship between y and x.
(Hint: use semilogx,
semilogy, loglog plots and see which one looks like a straight line)
3.
x = [1 2 3 4 5] and y = [7.10
18.74
33.05
49.45
67.58]
Figure out the equation that best conveys the relationship between y and x.
(Hint: use semilogx,
semilogy, loglog plots and see which one looks like a straight line)
4.
Generate a 4x4 matrix of random numbers in each of the following ranges:
a)
decimals [0,2]
b)
decimals [15, 25]
c)
decimals [ 5, 18]
d)
integers [1,10]
e)
integers [ 5, 18]
f)
decimals [ 5.5, 3.4]
g)
integers [100,1000]
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Fall '09
 blase
 Harshad number, 20%, loop, random numbers, 5 digits

Click to edit the document details