I. GRAPHICAL USER INTERFACE 1 Giao di nệ GUI:
6. T oạ các menu khác
Kích ho tạ các menu mới thêm vào:
% ---
function Hinh_sin_Callback(hObject, eventdata, handles)
global hsin x=linspace(0,2*pi); y=sin(x); hsin=plot(x,y); title('Ham sin(x)')
% --- function Hinh_sinc_Callback(hObject, eventdata, handles)
global hsin
x=linspace(-2*pi,2*pi); y=sinc(x); hsin=plot(x,y); title('Ham sinc(x)') % ---
function Hinh_cos_Callback(hObject, eventdata, handles)
global hsin x=linspace(0,2*pi); y=cos(x); hsin=plot(x,y); title( 'Ham cos(x)')
% --- function Hinh_tan_Callback(hObject, eventdata, handles)
global hsin
x=linspace(-2*pi,2*pi); y= tan(x); hsin=plot(x,y); title('Ham tan(x)')
% --- function View_2D_Callback(hObject, eventdata, handles) View(2)
% ---
function View_3D_Callback(hObject, eventdata, handles) View(3)
% --- function Zoom_fill_Callback(hObject, eventdata, handles) zoom fill
% --- function Zoom_out_Callback(hObject, eventdata, handles) ax=get(handles.figure1,'CurrentAxes');
set(ax,'CameraViewAngleM ode','auto');
% --- function Bang_mau_Callback(hObject, eventdata, handles)
global hsin
uisetcolor(hsin,'Bang mau Windows')
% --- function Thoat_Callback(hObject, eventdata, handles) closereq