Question: MATLAB HELP!! Grid Graphics a. Generate a 10-by-10 matrix, randMat, of random integers between 1 and 4, inclusively. b. Visualize randMat in four shades of
MATLAB HELP!! Grid Graphics
a. Generate a 10-by-10 matrix, randMat, of random integers between 1 and 4, inclusively.
b. Visualize randMat in four shades of gray as a square and with no axes. The following parts create a color map with shades of red and visualize randMat with this coloring scheme.
c. The color map, map, is to have the RGB values for four colors. Thus, establish map as an array of zeros of the appropriate size with a row for each color and three columns for the amounts of red, green, and blue.
d. Using a for loop, assign to each row of map the RGB values for a shade of red with red values from 1/4 to 4/4 = 1. Thus, each row should have a red value of i/4 and blue and green values of zero.
e. Make map the color map.
f. Visualize randMat in 4 shades of red as a square with no axes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
