Write a script that creates an image in MATLAB. The image is tobe no larger than 100 pixels by 100 pixels. From scratch, create a3D RGB matrix and include a command that can display it in a MATLABwindow.
a) The image is a blue square
b) The image is a blue pentagon
c) The image is a red triangle
Please be clear in your solution. A demonstration of the code onMATLAB would be great.
Expert Answer
Answer to Write a script that creates an image in MATLAB. The image is to be no larger than 100 pixels by 100 pixels. From scratch…