How to draw a plot inside a programmatic GUI

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

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개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

태그

질문:

2015년 4월 18일

댓글:

2015년 4월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by