##### Child pages
• Assignment 1
Go to start of banner

# Assignment 1

EE2372 – Software Design 1
Spring 2010
TTh 10:30 – 11:50, CRBL 302
Assignment 1 – Elements of programming using MATLAB

 Instructor: Dr. Gerardo Rosiles Engineering Annex 304 Office hours: MTThF 1:30-2:30 Phone: 747-7956 e-mail: grosiles@utep.edu

Assigned: January 31, 2010
Due Date: February 5, 2010
Turn in an electronic copy of your report via e-mail, including your answers and working MATLAB code for problems 3 and 4.
1. Write a MATLAB expression that converts a temperature value in Fahrenheit degrees, stored on variable F, to Celsius degrees stored in C. Verify your code using MATLAB.
2. Determine the result of the following expressions (you may do this by hand or with MATLAB):
Initialize: A = 10; B = 25; C = 30
D = (A+10)*C/B;
E = A*B*C – A + B
( A <= B ) | (B = = D) & ( C ~= 10)
~ (A > B) & ( C >= (B+5) ) & ( D < E)
3. Using your code from problem 1, write a MATLAB script that creates and array of five temperatures initialized with the following Fahrenheit values:
32 64 100 180 212,
then use a for loop to change the values to Celsius and stored them on an output array.
4. Repeat problemt 3 using a while loop.

• No labels