Question: 3 . Create an array named numbers with a random number of rows between 3 and 6 , a random number of columns between 3

3. Create an array named numbers with a random number of rows between 3 and 6, a random
number of columns between 3 and 6, with elements that are random integers between 1 and 40.
Let the array show in the command window (do not suppress this output). Using a while loop,
for loop(s), and if statement(s), write code that rearranges the integers in the array such that when
read from left-to-right then top-to-bottom (English reading order, not Matlab reading order) all of
the odd numbers are listed first, and otherwise numbers retain their original order (sample start
and re-ordered shown below). Output the final sorted array to the command window. Do not use the sort function.code again to verify that your code can handle different sizes of array (your submission only
needs to include the output in the command window for one run). Do not use the "sort" function
at any point. Remember that you are always allowed to use code from lecture as a starting point.
Before:
 3. Create an array named numbers with a random number of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!