Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started