사인 코사인 중첩 gui 만들고 있는데요 질문있습니다.
Show older comments

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;
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);
plot(handles.axes1,y);
set(handles.edit1,'string',strcat(get(handles.edit1,'string'),get(handles.pushbutton1,'string')));
코드를 이렇게 작성했습니다. edit 1 에는 계속 add function만 뜨고 sin+cos 값을 edit1에 표현하고 싶고 axes1 에도 표현하고싶은데 여기서 고쳐야할 점이나 추가해야할 점은 무엇인가요
Answers (0)
Categories
Find more on 파일 작업 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!