Question: Generate a random integer in range [ 1 , 2 0 ] and save that as num 1 . Generate a random integer in range
Generate a random integer in range and save that as num Generate a random integer in range and save that as num Create two vectors vec and vec with integers in range with length of the vectors as the random integers generated in the previous step vec with num as number of columns and vec with num as number of columns. Using a for loop, plot each point in vec with a red square. Using for loop, plot each point in vec with a blue on the same graph. For the plot:o x values for the graph are the number of values in each vector For example: for a vector of length x would be to o y values for the graph will be the elements in each vector. o For example if vec x would be the indices of the vector ie and y would be values in the vector ie Add x and y axes labels and a title for the plot
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
