gui cos sin wave question

조회 수: 6 (최근 30일)
JINWOO HONG
JINWOO HONG 2020년 6월 27일
댓글: Image Analyst 2020년 6월 27일
I made this code
how can I change it to look like this fig?
function pushbutton1_Callback(hObject, eventdata, handles)
f1 = str2double(get(handles.a,'String'));
f2 = str2double(get(handles.b,'String'));
f3= str2double(get(handles.c,'String'));
f4 = str2double(get(handles.d,'String'));
f5 = str2double(get(handles.e,'String'));
f4=0:0.1:10;
set(handles.d,'enable','off');
contents = cellstr(get(handles.popupmenu1, 'String'));
f6 = contents{get(handles.popupmenu1, 'Value')};
x = f1* sin(2*pi*f2*f4+f3);
y = f1 * cos(2*pi*f2*f4+f3);
plot(handles.axes1,x,y);
plot(handles.axes1,y);
set(handles.edit1,'string',strcat(get(handles.edit1,'string'),get(handles.pushbutton1,'string')));
  댓글 수: 1
Image Analyst
Image Analyst 2020년 6월 27일
Isn't this a duplicate of the other 5 posts?

댓글을 달려면 로그인하십시오.

답변 (1개)

JINWOO HONG
JINWOO HONG 2020년 6월 27일
i want to make like this

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by