The University of Texas at Austin PGE 310:Formulation and Solution in Geosystems Engineering Homework #2: Matrix operation and Plotting with MATLAB SOLUTION 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 1010, 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 vectorsu,v,wandx. 4231u2531v3412w5123xd.Create a 4by4 matrix, A, which is a combination of matrices uthroughxsuch that the first column is uthe second column isv, the third column isw.and the forth column isxe.Create a 4x4 matrix, B, of random numbers ranging from -2 to 4
has intentionally blurred sections.
Sign up to view the full version.