zl程序教程

您现在的位置是:首页 >  后端

当前栏目

基于MATLAB的交互式教学系统的设计与开发

MATLAB开发 基于 设计 交互式
2023-09-11 14:15:36 时间

function varargout = JHSJX(varargin)

% JHSJX M-file for JHSJX.fig

%      JHSJX, by itself, creates a new JHSJX or raises the existing

%      singleton*.

%

%      H = JHSJX returns the handle to a new JHSJX or the handle to

%      the existing singleton*.

%

%      JHSJX('CALLBACK',hObject,eventData,handles,...) calls the local

%      function named CALLBACK in JHSJX.M with the given input arguments.

%

%      JHSJX('Property','Value',...) creates a new JHSJX or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before JHSJX_OpeningFunction gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to JHSJX_OpeningFcn via varargin.

%

%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one

%      instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help JHSJX

% Last Modified by GUIDE v2.5 08-Mar-2012 08:38:11

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name',       mfilename, ...

                   'gui_Singleton',  gui_Singleton, ...

                   'gui_OpeningFcn', @JHSJX_OpeningFcn, ...

                   'gui_OutputFcn',  @JHSJX_OutputFcn, ...

                   'gui_LayoutFcn',  [] , ...

                   'gui_Callback',   []);

if nargin && ischar(varargin{1})

    gui_State.gui_Callback = str2func(varargin{1});

end

 

if nargout

    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

    gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before JHSJX is made visible.

function JHSJX_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% varargin   command line arguments to JHSJX (see VARARGIN)

% Choose default command line output for JHSJX

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes JHSJX wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = JHSJX_OutputFcn(hObject, eventdata, handles)

% varargout  cell array for returning output args (see VARARGOUT);

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

% --- Executes on button press in pushbuttonXT.

function pushbuttonXT_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonXT (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

JHS

close(JHSJX)

% --- Executes on button press in pushbuttonBJ.

function pushbuttonBJ_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonBJ (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

JHS1

close(JHSJX)

% --- Executes on button press in pushbuttonTCXT.

function pushbuttonTCXT_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonTCXT (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

Close

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

附录二

function varargout = JHS(varargin)

% JHS M-file for JHS.fig

%      JHS, by itself, creates a new JHS or raises the existing

%      singleton*.

%

%      H = JHS returns the handle to a new JHS or the handle to

%      the existing singleton*.

%

%      JHS('CALLBACK',hObject,eventData,handles,...) calls the local

%      function named CALLBACK in JHS.M with the given input arguments.

%

%      JHS('Property','Value',...) creates a new JHS or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before JHS_OpeningFunction gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to JHS_OpeningFcn via varargin.

%

%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one

%      instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help JHS

% Last Modified by GUIDE v2.5 09-Mar-2012 20:42:08

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name',       mfilename, ...

                   'gui_Singleton',  gui_Singleton, ...

                   'gui_OpeningFcn', @JHS_OpeningFcn, ...

                   'gui_OutputFcn',  @JHS_OutputFcn, ...

                   'gui_LayoutFcn',  [] , ...

                   'gui_Callback',   []);

if nargin && ischar(varargin{1})

    gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

    gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before JHS is made visible.

function JHS_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% varargin   command line arguments to JHS (see VARARGIN)

% Choose default command line output for JHS

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes JHS wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = JHS_OutputFcn(hObject, eventdata, handles)

% varargout  cell array for returning output args (see VARARGOUT);

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

 

 

% --- Executes on button press in pushbuttonF1.

function pushbuttonF1_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF1 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

%colormap(hsv(64))

z = cplxgrid(30);

cplxmap(z,z)

title('z')

% --- Executes on button press in pushbuttonF6.

function pushbuttonF6_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF6 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

axis('auto')

cplxroot(2)

view(0,0)

title('sqrt(z)')

% --- Executes on button press in pushbuttonF2.

function pushbuttonF2_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF2 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

 z = cplxgrid(30);

cplxmap(z , z.^3)

title('z^3')

% --- Executes on button press in pushbuttonF7.

function pushbuttonF7_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF7 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

view(-37.5,30)

cplxroot(2)

title('sqrt(z)')

% --- Executes on button press in pushbuttonF4.

function pushbuttonF4_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF4 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

 z = cplxgrid(30);

cplxmap(z,1./(z+eps*(abs(z)==0)),5*pi);

title('1/z')

% --- Executes on button press in pushbuttonF5.

function pushbuttonF5_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF5 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

 z = cplxgrid(30);

cplxmap(z,atan(z),1.9)

title('atan(z)')

% --- Executes on button press in pushbuttonF3.

function pushbuttonF3_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF3 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

 z = cplxgrid(30);

cplxmap(z,z.^2);

title('z^2')

% --- Executes on button press in pushbuttonF8.

function pushbuttonF8_Callback(hObject, eventdata, handles)

% hObject    handle to pushbuttonF8 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

cplxroot(3)

title('z^(1/3)')

% --- Executes on button press in radiobuttonFANHUI.

function radiobuttonFANHUI_Callback(hObject, eventdata, handles)

% hObject    handle to radiobuttonFANHUI (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobuttonFANHUI

JHSJX

close(JHS)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

附录三

function varargout = JHS1(varargin)

% JHS1 M-file for JHS1.fig

%      JHS1, by itself, creates a new JHS1 or raises the existing

%      singleton*.

%

%      H = JHS1 returns the handle to a new JHS1 or the handle to

%      the existing singleton*.

%

%      JHS1('CALLBACK',hObject,eventData,handles,...) calls the local

%      function named CALLBACK in JHS1.M with the given input arguments.

%

%      JHS1('Property','Value',...) creates a new JHS1 or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before JHS1_OpeningFunction gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to JHS1_OpeningFcn via varargin.

%

%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one

%      instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help JHS1

% Last Modified by GUIDE v2.5 08-Mar-2012 08:36:32

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name',       mfilename, ...

                   'gui_Singleton',  gui_Singleton, ...

                   'gui_OpeningFcn', @JHS1_OpeningFcn, ...

                   'gui_OutputFcn',  @JHS1_OutputFcn, ...

                   'gui_LayoutFcn',  [] , ...

                   'gui_Callback',   []);

if nargin && ischar(varargin{1})

    gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

    gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before JHS1 is made visible.

function JHS1_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% varargin   command line arguments to JHS1 (see VARARGIN)

% Choose default command line output for JHS1

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes JHS1 wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = JHS1_OutputFcn(hObject, eventdata, handles)

% varargout  cell array for returning output args (see VARARGOUT);

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

% --- Executes on button press in radiobuttonJR.

function radiobuttonJR_Callback(hObject, eventdata, handles)

% hObject    handle to radiobuttonJR (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobuttonJR

notebook

JHS1

% --- Executes on button press in radiobuttonFANHUI.

function radiobuttonFANHUI_Callback(hObject, eventdata, handles)

% hObject    handle to radiobuttonFANHUI (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobuttonFANHUI

JHSJX

close(JHS1)