Question: Problem 4 . ( 5 points ) a ) Create a vector x that has nine equally spaced values between 3 and 3 . b

Problem 4.(5 points)a) Create a vector x that has nine equally spaced values between 3 and 3.b) Write a command to extract 0.75 from the vector x and save it to a variable valuec) Write a command to save the value at index 3 in vector x to a variable called value2d) Write a command to create a new vector newvec which has the values in index 2,4 and 6 of xe) Write a command to replace the element in index 9 in x with 99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!