How to create a parameter panel in matlab figure?
이전 댓글 표시
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.
답변 (1개)
Adam
2016년 8월 23일
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
antennist
2016년 8월 23일
Walter Roberson
2016년 8월 23일
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
2016년 8월 24일
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.
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!