Question: Write a program in matlab to do the following: only do deliverable number 1, make sure to include coments on how to do this so

Write a program in matlab to do the following:  Write a program in matlab to do the following: only do
deliverable number 1, make sure to include coments on how to do
only do deliverable number 1, make sure to include coments on how to do this so i can understand it and be able to make a recording of it and its explanation.
Thank you :)

Consider the following segment of a MATLAB code. Run the code segment to understand what is plotted, what inputs are accepted, and which game is being played. Next, you will add to the code segment in order to create a game that is you versus the computer. Deliverables: 1. Submit a.m file to Canvas by Tuesday 3/9, 11:59 pm. This m file must contain details on the following, written as comments: o What is being plotted? o What inputs are accepted? o What game is this? o Update the script to play this game as you versus the computer 2. A video recording submitted by Tuesday 3/9, 11:59 pm of you and/or your partner explaining and testing the code. You should demonstrate the following: o Explain each line of code o Play the game multiple times to prove that there are no errors, see Testing Your Code below. 3. Teamwork survey available after Project 2 has been submitted Code Segment: xhi = [0,3] ;xh2 = [0,3); xv1 = [1,1];xv2 [2,2); yh1 = [1,1];yh2 = [2,2]; yvl = [0,3] ; yv2 [0,3); clf plot (xhi, yh, 'b', xh2, yh2, 'b',xvi, yvi, 'b', xv2, yv2, 'b'),... axis off, axis square, ... title('Click in the desired location.') hold play = 0; while play

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!