Question: PLEASE HELP! with my matlab assignment = CONTENTS Close Courses & Content LMS Integration Documentation & Support Assignment 1 select sub matrix O solutions submitted
PLEASE HELP! with my matlab assignment



= CONTENTS Close Courses & Content LMS Integration Documentation & Support Assignment 1 select sub matrix O solutions submitted (max: 3) Create a vector with spacing create a matrix with following values Pythagorean Theorem 1 2 3 4 A= 8.7 6.9 4.7 3.2 112 23 45.6 12 viscosity is the Carreau model Revers an array using colon operator and end keyword create a matrix (B) that has two column. its first column is the last column of matrix a and its second columnis the third column of matrix A Inverse and Transpose conctat B with following vector and creat new matrix and save new matrix(BB) colon operator C= -0 select sub matrix Create diagonal matrix Script C Reset 10 MATLAB Documentation Select every other element of a vector Swap the first and last columns A = 2 B = 3 C = 4 BB = CONTENTS Close Courses & Content LMS Integration Documentation & Support Computer Software for Sciences Computer Software for Sciences > Assignment 1 > Select every other element of a vector O solutions submitted (max: 3) Assignment 1 Create a vector with spacing Pythagorean Theorem the everyOther function is supposed to return every other element of the vector passed in to it(x). That is, it returns the all odd-numbered elements, starting with the first viscosity is the Carreau model change the second line of code to correct this function Revers an array Examples Input X - [1 3 2 4 3 5] Output y is [1 2 3] Inverse and Transpose colon operator Input X - [5 9 3 2 2 0 -1] Output y is (5 3 2 -1] select sub matrix Create diagonal matrix Function C Reset ES MATLAB Documentation Select every other element of a vector 1 function y = everyother (x) y = x; end Swap the first and last columns 3 CONTENTS Close Courses & Content LMS Integration Documentation & Support Assignment 1 Swap the first and last columns O solutions submitted (max: 3) Create a vector with spacing Pythagorean Theorem The provided function should flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All other columns should be left intact. Return the result in matrix B. If the input has one column, the output should be identical to the input. viscosity is the Carreau model Revers an array Example Inverse and Transpose 4 1 Input A = [ 12 5 Output Bis 7 4 7 4 ]; 12 5 ]; colon operator 4 1 select sub matrix Create diagonal matrix Function C Reset MATLAB Documentation Select every other element of a vector 1 function B = swap_ends (A) Swap the first and last columns 3 4. 5 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
