Question: Problem 1(b) of 5: Write a MATLAB script file named vectorPattern_yourPID.m that will: create a vector for a variable A with value [399 398 397
Problem 1(b) of 5: Write a MATLAB script file named vectorPattern_yourPID.m that will: create a vector for a variable A with value [399 398 397 . . . . 300] using the vector A, create a second vector B which has the same numbers as A at its even indexes, but the numbers at odd index values are replaced by the value 2. Starting from the index value 27, replace every 4th element of vector B with the value 600 Multiply each element of B with the value -1 Display only the 54th 96th elements of B.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
