Question: 4 . Using Matlab,Create a row vector vec that the elements start from - 1 0 to 1 0 , by incremental 5 , using

4. Using Matlab,Create a row vector vec that the elements start from -10 to 10, by incremental 5, using colon operator.
Then do the followings:
(a) Create a new vector sub vec by extracting the last 3 elements from vector vec.
(b) Change the value of last element of vec such that the value of last element is calculated using function
sin().

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!