EE 289
Spring 2012
QUIZ I (1/27/12)
Name_
Partial credit will be given if you show all your work.
Consider the following MATLAB program entered at the Command Window,
> t=0:0.5:20;
> f1=sin(2*pi*0.1*t);
> f2=exp(-0.25*t);
> f=f1.*f2;
> plot(t,f)
What woul
EE 2010
Fall 2010
EE 289 Homework 7
Due October 14, 2010
1. In a Physics experiment to measure the acceleration of gravity, students collect the following
data, which show the position of a falling object as a function of time:
y (meters)
t (seconds)
0.0
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all C programs.
Follow t
EE 2010
Fall 2010
EE 289 Homework 6
Due October 7, 2010
1. Write a MATLAB function which will calculate the path of a projectile which has an initial
velocity v0 (in meters/second) and an initial angle 0 (in degrees). The relevant equations
are:
x = v0 co
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all MATLAB programs.
Fol
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all MATLAB programs.
Fol
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all MATLAB programs.
Fol
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all MATLAB programs.
Fol
EE 289
Spring 2012
Make sure to write down your procedure clearly and answer exactly what the problem is asking for. Points will be taken off
for incomplete, unintelligible, and sloppy procedures and solutions. Include comments in all MATLAB programs.
Fol
EE 289
Fall 2012
EE 289 Homework Chapter 5
1 Write a function called checkFactor that takes in two numbers and checks if they are divisible, that is,
if the first is divisible by the second. You may assume that both numbers are positive. Your function
sho
EE 289
Fall 2012
EE 289 Homework Chapter 4
1 Write a script to solve this problem. Assume that you have a vector named D. Using iteration (for
and /or while) and conditionals (if and/or switch), separate vector D into four vectors posEven, negEven,
posOdd
EE 289
Fall 2012
EE 289 Homework Chapter 3
1 For these exercises, do not use the direct entry method to construct the vectors. Write a script that
does the following:
a. Construct a vector containing all of the even number between 6 and 33, inclusive of t