PGE310 - HW2 - Solution

PGE310 - HW2 - Solution - The University of Texas at Austin...

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

View Full Document Right Arrow Icon
The University of Texas at Austin PGE 310:Formulation and Solution in Geosystems Engineering Homework #2: Matrix operation and Plotting with MATLAB 1. For all of the following sections use a single command in MATLAB to create the answer. Print out your commands and the results and box/highlight your results. (40%) (Part a 5 Pts others 2.5 Pts) a. Create a vector, a, that starts at 10 10 , ends at 1, decreased logarithmically, and has 5 elements. You may want to use the command “format long” so that digits aren’t truncated. After the problem, you may want to go back to “format short” b. Use a built-in function to create a vector, b, with 10 elements. Elements 1 to 5 start at -5, end at -3, and increased by 0.5. Elements 6 to 10 start at 10, end at 14 and increased by 1 c. Create vectors u , v , w and x .  4 2 3 1 u 2 5 3 1 v   3 4 1 2 w   5 1 2 3 x d. Create a 4by4 matrix, A, which is a combination of matrices u through x such that the first column is u the second column is v , the third column is w .and the forth column is x e. Create a 4x4 matrix, B, of random numbers ranging from -2 to 4
Background image of page 1

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

View Full DocumentRight Arrow Icon
f. Using a single command (not by directly typing in sixteen -4.5), create a 4x4 matrix F that is filled with the values of -4.5 Or g. Calculate C which is true matrix multiplication of A times B h. Calculate D which is element by element division of A divided by B i. Using colon notation, make the 3 rd column of D equal to x vector j. Change the element in 3 rd row, 2 nd column of D to the 2 nd row and 4 th column of B using subscript notation
Background image of page 2
k l m n o k. Make the .
Background image of page 3

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

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

This note was uploaded on 02/13/2012 for the course PGE 310 taught by Professor Klaus during the Spring '06 term at University of Texas at Austin.

Page1 / 9

PGE310 - HW2 - Solution - The University of Texas at Austin...

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

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