How to draw a plot inside a programmatic GUI
1 次查看(过去 30 天)
显示 更早的评论
Hello all
I am a student and know very little. I have a programmatic GUI which is simply a green field with an editable text box in it. I need to plot a sine wave (which is already made) on this green field. How is this accomplished?
I am using uicontrol, and here is the code:
f=figure('Color', [.2 .5 .3], 'Position',[200,200,900,600])
inputBox = uicontrol('Style','edit','Position',[70 520 150 30])
Thank you in advance
AC
1 个评论
Geoff Hayes
2015-4-18
Ann - what is the edit box for? Is it the amplitude or frequency of the sine wave? If so, how is it used to plot the sine wave? Does the user type in a value and then press enter so that the new sine wave is drawn? Please clarify how the sine wave is drawn.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!