Question: In MATLAB (please type it out -- handwriting is difficult to read): P.S. Write a MATLAB program that generates a vector with 20 random integer
In MATLAB (please type it out -- handwriting is difficult to read):

P.S. Write a MATLAB program that generates a vector with 20 random integer elements with integers between -10 and 10; b. a. replaces all the negative integers with random integers between -10 and 10; and c. repeats b. until all the elements are positive. The program should also count how many times b. is repeated before all the elements are positive. When done, the program displays the vector and a statement states how many iterations were needed for generating the vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
