How to create a parameter panel in matlab figure?
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Adam
on 23 Aug 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 Comments
Walter Roberson
on 23 Aug 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
on 24 Aug 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.
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!