axes(handles。axes2);
fplot('sin(x)。/x',[-100 100 -0。24 1。1]); %绘制函数极限
text(30,0。5,'sin(x)/x'); %标注函数名称
调用close函数关闭图形退出程序,代码如下:
unction close_pushbutton_Callback(hObject, eventdata, handles)
close %关闭图形结束
菜单项comet_menu通过调用函数comet_pushbutton_Callback绘制动态曲线的代码如下:
function comet_menu_Callback(hObject, eventdata, handles)
comet_pushbutton_Callback(hObject, eventdata, handles)
function file_menu_Callback(hObject, eventdata, handles)
菜单项limit_menu通过调用函数limit_pushbutton_Callback来绘制静态极限图形的代码如下:
function limit_menu_Callback(hObject, eventdata, handles)
limit_pushbutton_Callback(hObject, eventdata, handles)来~自,优^尔-论;文*网www.youerw.com +QQ752018766-
菜单项close_menu通过调用close函数来关闭图形退出程序的代码如下:
function close_menu_Callback(hObject, eventdata, handles)
close %关闭图形结束
运行程序后,通过单击“Comet”按钮或者菜单项comet后,可以绘制动态曲线(彗星轨迹)图形;通过单击“Limit”按钮或者菜单项limit后,可以绘制静态极限图形