Question: Using matlab: Build a graphical user interface (GUI) the will read the two corners of a rectangle (from the GUI interface) and show the following:

Using matlab:

Build a graphical user interface (GUI) the will read the two corners of a rectangle (from the GUI interface) and show the following:

  • A plot of the rectangle (you should have display for it)
  • Show the centroid (the center of the rectangle) on the graph.
  • Calculate the area and the circumference of the triangle (you need to write a function for that).

The interface should have at least the following:

  • Four textboxes to read the ( 2 for each corner of the Rectangle) so the user can enter them
  • At least one command button to start the display and calculations
  • At least one Figure (display).

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!