MAE 8: Homework 3
Due on Monday, July 18th
CHAPTER 5
Problem 1. Create vector x that has integers 1 through 10, and set vector y equal to x. Plot this straight
line. Now, add noise to the data points
MAE 8 - Winter 2017
Midterm Review
Content: The midterm will cover materials from chapters 1-4 of the textbook, homework
1-4 and lectures 1-12. The exam format is 16 multiple-choice questions in 50 mi
MAE 8 - Fall 2017
Homework 4
Instructions: Follow the homework solution template. Put all answers in a MATLAB
script named hw4.m. For this homework, you will need to submit multiple files. Create a
zi
MAE 8 - Winter 2017
Midterm Exam Time: 50 minutes
FORM B
Instructions: Choose the best answer. Use #2 pencil. Completely fill the bubbles. Put your
name, your
MAE 8 - Winter 2015
Final Exam
FORM A
Instructions: Choose the best answer. Use #2 pencil. Completely fill the bubbles. Put your
name, your PID and the form (A
MAE 8 - Spring 2015
Homework 1
Instructions: Follow the homework solution template. Put all answers in a MATLAB
script named hw1.m. Submit hw1.m through TED before 9 PM on 04/09/2015. Use double preci
MAE 8 - Spring 2015
Homework 4
Instructions: Follow the homework solution template. Put all answers in a MATLAB script
named hw4.m. For this homework, you will need to submit multiple les. Create a zi
MAE 8 Homework 5, Due February 13, 2013
February 7, 2013
1
Create an x vector that has integers 1 through 10, and set a vector y equal
to x. Plot this straight line. Now, add noise to the data points
A Brief Review
The following are just a few of the basics you are expected to know. If youve forgotten or are
confused by any of this, please review on your own or ask for help immediately. In the res
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 8
Hieu T. Pham
Spring 2015
Dept. of Mechanical and Aerospace Engineering
Announcement
! Homework 1 solution, grade, grade-breakdown are
poste
MAE 8 - Spring 2015
Homework 5
Instructions: Follow the homework solution template. Put all answers in a MATLAB
script named hw5.m. For this homework, you will need to submit multiple les. Create
a zi
MAE 8
- HW#1David T Zimmerman
A092789744
April 5, 2013
CHAPTER 1: problems; 25-42
25) create the two vectors twice each. once using the colon operator and once linspace
> 1:10
ans =
1
2
3
4
5
6
7
8
9
MAE 8: Homework 1
Due on Monday, July 6th
CHAPTER 1
Problem 1. Write MATLAB expressions for the following:
18.5
2.512
2 tan( 6)
Problem 2.
Generate a random:
- real number in the range (0, 30)
- real
MAE 8
Solution to Final Examination Sp 13
1.) (20%) Circle choices or write answers in the following multiple choice questions. (Points are
deducted for wrong answers.)
a.) (2%) The commands " i=0;whi
Solution
MAE 8 Home Problem HW02(a)
2) The atomic weight is the weight of a mole of atoms of a chemical element. For
example, the atomic weight of oxygen O is 15.9994 and the atomic weight of silicon
MAE 8 - Spring 2015
Homework 6
Instructions: Follow the homework solution template. Put all answers in a MATLAB
script named hw6.m. For this homework, you will need to submit multiple les. Create a
zi
MAE 8
Solution to Midterm Examination 1, F 14
(Answers are in black font.)
1.(9%) Write down the output from the commands
a.) 3:2:12
3 5 7 9 11
b.) linspace(6,21,6)
6 9 12 15 18 21
c.) length(linspace
MAE 8
Solution to Final Examination Sp 13
1.) (20%) Circle choices or write answers in the following multiple choice questions. (Points are
deducted for wrong answers.)
a.) (2%) The commands " i=0;whi
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 1
Hieu T. Pham
Spring 2015
Dept. of Mechanical and Aerospace Engineering
Teaching Staff
! Instructor:
! Hieu T. Pham (h8pham at ucsd dot edu)
MAE 8 - Winter 2015
Midterm
FORM A
Instructions: Choose the best answer. Use #2 pencil. Completely fill the bubbles. Put your
name, your PID and the form (A or
MAE 8
Sample Midterm Exam. 2 Closed books and laptops, open notes & no wireless
communication
1.) (20%) A string variable namestr in the format Last, First, which for example would be
created by comma
Solution HW09(a)
22) The built-in function clock returns a vector with six elements representing, in
order, the year, month, day, hour, minutes, and seconds. Making use
MAE 8 Homework 6, Due February 21, 2013
February 15, 2013
1
A le called hightemp.dat was created some time ago that stores, on every
line, a year followed by the high temperature at a specic site for
MAE 8
Solution Midterm Examination 2, F 14
1.) (15%) Write a script that will ask the user to input rst and last names as separate strings and
then create and print a string consisting of a UCSD compu
MAE 8: Homework 5
Due on Friday, July 29th
CHAPTER 9
Problem 1. For a biomedical experiment, the names and weights of some patients have been stored in a file
patwts.dat. For example, the file might l
Solution HW1 Exercises from Ch. 1 of Attaway
1) Create a variable to store the atomic weight of silicon (28.085).
> siliconAtWt = 28.085
siliconAtWt =
28.0850
2) Create a v
MAE 8: Homework 5
Due on Friday, July 29th
CHAPTER 9
Problem 1. A For a biomedical experiment, the names and weights of some patients have been stored in a file
patwts.dat. For example, the file might
MATLAB
David McMahon
New York
Madrid
Chicago
San Francisco
Lisbon London
Mexico City Milan
New Delhi
San Juan
Seoul
Singapore
Sydney
Toronto
2 2008-1-30 2008-4-12
^_^
MATLAB S.J.Chapman MATLAB
D
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 18
Hieu T. Pham
Fall 2017
Dept. of Mechanical and Aerospace Engineering
Chapter 5 topics
! For loops
! Nested for loops
! While loops
! Combi
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 22
Hieu T. Pham
Fall 2017
Dept. of Mechanical and Aerospace Engineering
Example: Projectile motion
! A ball initially on the ground with a ma
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 23
Hieu T. Pham
Fall 2017
Dept. of Mechanical and Aerospace Engineering
Chapter 8 topics
! Data structures
! Cell arrays
! Structures
Structu
MAE 8: MATLAB Programming for
Engineering Analysis
Lecture 25
Hieu T. Pham
Fall 2017
Dept. of Mechanical and Aerospace Engineering
Chapter 9 topics
! High-level input functions
! Low-level input / out