Question: Creating 1D Arrays: Vectors In your script file, create the following vectors according to the format listed in the table. An example has been provided
Creating 1D Arrays: Vectors
In your script file, create the following vectors according to the format listed in the table. An example has been provided for you with the corresponding code and output to the Command Window. 
Row Row Row 0, 0, 0, 0, 0, 0, 0, 8 using the zeros function to initialize the vector first 0,0,0,0,0,9, 9, 9, 9 using the zeros function to initialize the vector first | -4,-1, 2, 5, 8, 14, 18, 22, 26, 30 using the colon operator and vector concatenation 4,4,4,4,5, 5, 5, 5, 5 using the linspace function and vector concatenation 4,4,4,4,5,5,5,5,5 using the zeros function to initialize the vector first Column Column
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
