Specifying attributes of objects created in GUIDE
Ältere Kommentare anzeigen
I'm creating a UI using GUIDE. It is important that I position items in the UI in exact locations. I can only approximately position objects using the mouse to move the objects around. Is there a command line method to specify - for instance - exact coordinates of a button's position i.e., [1.0, 1.0, 2.0, 1.5]?
Akzeptierte Antwort
Weitere Antworten (1)
Alex Mcaulley
am 24 Apr. 2019
Bearbeitet: Alex Mcaulley
am 24 Apr. 2019
set(handles.yourButton,'Units', 'pixels') %If your position is in pixels
set(handles.yourButton,'Position', [1.0, 1.0, 2.0, 1.5])
1 Kommentar
Kim
am 24 Apr. 2019
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!