How to create a parameter panel in matlab figure?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, How can make a menu panel diplaying certain parameters in matlab figure. I have plotted an antenna radiation pattern and now I want to display certain parameters (both numerical and text) which I have calculated in that figure. I could use the title function of matlab but I want to create a small panel on left side of figure showing these parameters. Thank you.
0 Commenti
Risposte (1)
Adam
il 23 Ago 2016
doc uipanel
contains an example.
doc uicontrol
gives more examples for the actual controls themselves.
Or if you want a more detailed GUI then you can use GUIDE to create one rather than adding a panel to a standard figure on the fly.
3 Commenti
Walter Roberson
il 23 Ago 2016
It is necessary to use handles for this.
pdata = get(m.p, 'Data');
a_value = pdata{1,2}; %extract a from the appropriate location in the panel
set(m.a, 'String', a_value);
Adam
il 24 Ago 2016
What is "the desired variable"? to display in the text box?
Also your syntax is confusing...'m' is a handle to a figure, but you then try to set something in a field 'p' on it which should lead to a syntax error.
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!