Question: Make a code in matlab for the next exercise:The GUI should have the following elements: A static text label with a title for the app

Make a code in matlab for the next exercise:The GUI should have the following elements:
A static text label with a title for the app
An input panel with 2 numeric edit fields for Number of Targets and Grid Size (In the previous
assignments, the grid size was fixed at 10. In this assignment it is variable.) Each of these edit
fields should have a non-zero default value set in the design view of App Designer.
A set of axes to display the robot/target locations (one set of axes total-the target locations
will only be displayed when a certain button is pressed)
Two text labels: one to display the number of targets found so far, and one to display the
number of neighboring targets to the robot's current position. The second label can also be used
to display the warning message when the user tries to move outside the grid boundaries.
Four buttons to move in the Up, Down, Right, and Left directions. For this assignment, the robot
will always move one square at a time, unlike in the earlier assignments, where it could move
arbitrary distances. Therefore, DO NOT USE the input() function.
When one of these buttons is pressed:
The grid matrix should update with the movement
The axes should update with the new robot position
The number of targets found should be displayed on a text label
The neighboring targets/error message should be displayed on another text
label
A Start button. When this button is clicked, the grid size and number of targets edit fields should
be read in, the grid and the target matrices should be initialized, and the robot's coordinates
should be set to the center of the grid.
A Reset button. When the button is clicked, the grid and target matrices should be re-initialized
back to the non-zero number you originally set them to be, the robot's coordinates should be
set to the center of the grid, and the number of targets found should be set back to zero.
A Stop button. When this button is clicked, the remaining target locations are displayed in the
axes.
Make a code in matlab for the next exercise:The

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 Accounting Questions!