Effacer les filtres
Effacer les filtres

Creating Edit Box without using GUIDE

2 vues (au cours des 30 derniers jours)
skyimager
skyimager le 1 Juin 2012
I am trying to make certain plots using a script file. Now i want to display data also, the same way we do in GUI using guide. But here i am NOT using GUIDE. I want to create edit boxes using that script file only and then set certain data from my program into the edit boxes. Please tel me how can I do that.

Réponse acceptée

per isakson
per isakson le 1 Juin 2012
This is a start
fh = figure;
ebh = uicontrol( fh, 'Style', 'edit' )
next step is
doc uicontrol
.
Documentation says:
Uicontrol Properties Describe user interface control (uicontrol) propert
...
Position position rectangle
Size and location of uicontrol. The rectangle defined by this property specifies the size and location of the control within the parent figure window, uipanel, or uibuttongroup. Specify Position as [left bottom width height] left and bottom are the distance from the lower-left corner of the parent object to the lower-left corner of the uicontrol object. width and height are the dimensions of the uicontrol rectangle. All measurements are in units specified by the Units property.
  2 commentaires
skyimager
skyimager le 1 Juin 2012
How to allocate a specific location of the edit box in the workspace. Using subplot we allocate the position of each axes What to do for edit boxes. Also how to write data in these edit boxes.
per isakson
per isakson le 1 Juin 2012
You have to read the documentation yourself.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by