资源简介
matlab GUI设计。
代码片段和文件信息
function varargout = test(varargin)
% TEST MATLAB code for test.fig
% TEST by itself creates a new TEST or raises the existing
% singleton*.
%
% H = TEST returns the handle to a new TEST or the handle to
% the existing singleton*.
%
% TEST(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in TEST.M with the given input arguments.
%
% TEST(‘Property‘‘Value‘...) creates a new TEST or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before test_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to test_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
% Edit the above text to modify the response to help test
% Last Modified by GUIDE v2.5 26-Jan-2017 16:20:09
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @test_OpeningFcn ...
‘gui_OutputFcn‘ @test_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 test is made visible.
function test_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 test (see VARARGIN)
set(handles.edit1‘enable‘‘off‘);
axes(handles.axes1)
t=0:0.001:4*pi;
f=sin(t);
plot(tf‘g‘)
axis([0 4*pi -1 1])
grid on
xlabel(‘t‘)
ylabel(‘sin(t)‘)
title(‘正弦函数图像‘)
legend(‘f=sin(t)‘)
% Choose default command line output for test
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes test wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = test_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
- 上一篇:正交信号修正OSC源码
- 下一篇:Retinex Matlab算法
相关资源
- 基于MATLABGUI的语音信号特征提取系统
- 基于MATLABGUI实现图像阈值分割处理的
- matlabGUI 音频文件的滤波程序包含低频
- 一些比较经典的MATLABgui界面的,对指
- 图像处理技术应用实践—课程设计1
- MatlabGui坐标轴内随鼠标移动的十字线
- MATLABGUI图割法(Grabcut)对象分割
- Matlab GUI 编程经典案例,学习GUI必备
- 基于MATLABGUI的数字滤波器设计与实现
- matlabGUI和DSP28335SCI通信
- 基于MATLABGUI的滤波器设计软件设计-基
- 基于 matlabgui的音效处理器
- 精通MATLAB GUI设计第3版代码
- 《matlabGUI程序设计》源码
- matlab gui 读取图片的小例程
评论
共有 条评论