Question: The language is MATLAB. 3) Write a function that will create the image seen in the Figure below. The function takes at least one input
The language is MATLAB.
3) Write a function that will create the image seen in the Figure below. The function takes at least one input argument: the size of the square-shaped image in number of pixels. The default color for the square is black, and the default color for the circular disk is white. If a second input argument is provided, it should be the color of the circular disk. If a third input argument is provided, it will be the color of the square. For example, a call Createlmage(200) will show the following image: A call Createlmage(200, [1,0,0]) will show the following image A call Createlmage(200, [1,0,01,l10,1]) will show the following image
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
