HomeWork eXtra (HWX) MathWorks Instructional Videos ENGR/MTH/PHYS-25 Problem-1

advertisement
ENGR/MTH/PHYS-25
HomeWork eXtra (HWX)
MathWorks Instructional Videos
Problem-1
1. Consult This GETTING STARTED video:

http://www.mathworks.com/videos/getting-started-with-matlab-68985.html
2. Use MATLAB to produce the 3D plot shown below.
3. Paste the plot, and the MATLAB commands used to create the plot, into an MSWord file as
described in class
© Bruce Mayer, PE • Chabot College • ENGR-25_HWX_Instructional_Videos_1601.docx • Page 1
Problem-2
1. Consult This MATLAB PROGRAMMING video:

http://www.mathworks.com/videos/getting-started-with-matlab-68985.html
2. Use MATLAB to create an array, P, with 8 ROWS and 5 Columns consisting of
NORMALLY distributed Random numbers
3. Paste the array, and the MATLAB command(s) used to create the array, into the same
MSWord file as used for Problem-1

Use the MSWord font “Courier New” for array P, to produce aligned columns
Problem-3
1. Consult This MATLAB PROGRAMMING video:

http://www.mathworks.com/videos/getting-started-with-matlab-68985.html
2. Use MATLAB to create a row vector, 𝑢
⃗ , that runs from 0-10 with increments of 0.1

Do NOT include the print out of the VALUES in 𝑢
⃗ , but do include the commands
used to create the vector
3. Create the vector ⃗⃗⃗⃗
𝑢𝑐 = cos 𝑢

Do NOT include the print out of the VALUES in ⃗⃗⃗⃗
𝑢𝑐 , but do include the commands
used to create the vector
4. Create a plot of ⃗⃗⃗⃗
𝑢𝑐 vs, 𝑢
⃗ , (𝑢
⃗ is the Independent variable).
5. Paste the plot, and the MATLAB commands used to create the plot, into an MSWord file as
described in class. Paste into the same MSWord file as used for Problem-1
Problem-4
4. Consult This (Different) MATLAB PROGRAMMING video:

http://www.mathworks.com/videos/writing-a-matlab-program-69023.html
5. Use MATLAB to write and save the FUNCTION file “simple”
6. Engage “simple” from the Command Window to produce the 2D MultiLine plot shown
below.
7. Paste the plot, and the MATLAB file “simple” used to create the plot, into the same
MSWord file as used for Problem-1
8. Print out the MSWord File and submit this HardCopy as HWX.
© Bruce Mayer, PE • Chabot College • ENGR-25_HWX_Instructional_Videos_1601.docx • Page 2
70
60
50
40
30
20
10
0
0
100
200
300
400
500
600
700
800
900
1000
Print Date/Time = 19-Jan-16/14:21
© Bruce Mayer, PE • Chabot College • ENGR-25_HWX_Instructional_Videos_1601.docx • Page 3
Download