Question: ICA 0 4 Part 2 : Matlab Coding Provide a single script file ICAO 4 . m with the Matlab code for the following problems.
ICA
Part : Matlab Coding
Provide a single script file ICAOm with the Matlab code for the following problems. At the top of your file, include a comment containing your name, class section, and the date. Print out each originally generated vector and each final answer to the Command Window, but suppress all other output.
points Generate a row vector with random integers between and where itself is a random integer between and Use element indexing to extract alternating elements, beginning from the first element, and store your result in a vector altElems. For example, if the original vector is your code should output
::
points Generate a row vector of random integers between and Create a logical index vector that identifies all even numbers in your array ie all numbers that have a remainder of zero when divided by are identified as true Use your logical index vector and logical operators to create a vector evens that extracts all the even numbers from the original row vector and a variable odds that contains all the odd numbers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
