Question: Given a 50 element array called fifty and random numbers between 1 and 50, count the occurrences of each number by incrementing the corresponding element

Given a 50 element array called fifty and random numbers between 1 and 50, count the occurrences of each number by incrementing the corresponding element (i.e., if a 3 is generated, then element 3 is incremented by 1). You should use a for-loop to generate 235 random numbers. Output the results of the fifty array (you may not use %g) 6. %for-loop to generate 235 random numbers num-randi(50); %generates one random number from 1 to 50 %output fifty array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
