Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USING MATLAB The following 3D matrix represents the six sides of a dice. Each level is a 6 x 6 matrix which shows what circles
USING MATLAB
The following 3D matrix represents the six sides of a dice. Each level is a 6 x 6 matrix which shows what circles to draw. For a dice of SIZE pixels draw the fifth layer as show below. You must use the diceValues matrix to inform which circles you choose to draw. The circles have a diameter equal to SIZE/3.
diceValues(:,:,1) = [0 0 0; 0 1 0; 0 0 0];
diceValues(:,:,2) = [1 0 0; 0 0 0; 0 0 1];
diceValues(:,:,3) = [1 0 0; 0 1 0; 0 0 1];
diceValues(:,:,4) = [1 0 1; 0 0 0; 1 0 1];
diceValues(:,:,5) = [1 0 1; 0 1 0; 1 0 1];
diceValues(:,:,6) = [1 0 1; 1 0 1; 1 0 1];
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started