HW07f08 - COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT AUSTIN Department of Chemical Engineering•Austin, Texas 78712-1062•(512)471-5238•FAX(512)471-7060 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 element-by-element calculations:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/26/2009 for the course CHE 210 taught by Professor Swinnea during the Fall '08 term at University of Texas.

Page1 / 2

HW07f08 - COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online