Shayan Ali
Shayan Ali

Reputation: 65

How to create axes in matlab GUIDE

I want to implement the following code using matlab GUIDE:

axes(handles.axes1);
imshow(image1);
axes(handles.axes2);
imshow(image2);

As I am very new to GUIDE so I am having no idea how to do this. Any guidance.

Upvotes: 0

Views: 479

Answers (1)

Ilya Kobelevskiy
Ilya Kobelevskiy

Reputation: 5355

  1. Open guide selecting empty gui
  2. Drag and drop two axes objects anywhere in the figure. Right clicking on any axes object and seeing it properties allows to set size, position, and name of the object. Guide always generate figure file in parallel with .m file containing all callback functions, among them function to be called on opening the gui (just before it is visible) -you can put you imshow() code there... The whole thing is very intuitive, and has a great help provided by matlab.

Upvotes: 1

Related Questions