How to create a parameter panel in matlab figure?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Adam
el 23 de Ag. de 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 comentarios
Walter Roberson
el 23 de Ag. de 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
el 24 de Ag. de 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.
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!