Question: Write a MATLAB script that will generate 100 x 100 image of pixels as shown below. The colored areas will be randomly either red or
Write a MATLAB script that will generate 100 x 100 image of pixels as shown below. The colored areas will be randomly either red or green for each element.

Please solve using matlab only and provide the answer as text
10 20 300 40 50 0 70 0 90 100 10 20 30 40 50 60 70 80 90 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
