COLLEGE OF ENGINEERING
THE
UNIVERSITY OF TEXAS AT AUSTIN
Department of Chemical Engineering•Austin, Texas 787121062•(512)4715238•FAX(512)4717060
ChE 210
Homework 7
Due:
Wednesday, October 29
Matrix Programming and Vector/Matrix Practice
The
first
few
of
these
exercises
illustrate
how
simple
MATLAB
tools
make
certain
computations trivial without resorting to programming techniques.
The last exercise is a
matrix manipulation exercise.
Remember to identify your homework with the following comment lines.
%Your Name
%ChE 210
%Homework 7
%Due Date
For the first three problems, solve at the command line and print results.
1. Create the matrix shown below by using techniques for creating vectors with constant
spacing and/or the linspace command when entering the rows.



=
7
.
0
4
.
0
1
.
0
2
.
0
5
.
0
8
.
0
1
.
1
4
.
1
62
63
64
65
66
67
68
69
28
24
20
16
12
8
4
0
B
2. Define x and y as the vectors x = [ 2,4,6,8,10] and y = [3,6,9,12,15].
Then use them in
the following expression to calculate z using elementbyelement calculations:
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 '08
 SWINNEA
 Chemical Engineering, Addition, matrix manipulation exercise, Department of Chemical Engineering·Austin

Click to edit the document details