⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ventana3.m

📁 Is a group of GUI files (MATLAB), this permit load and save differents mathematical functions and pl
💻 M
字号:
function varargout = Ventana3(varargin)
% VENTANA3 M-file for Ventana3.fig
%      VENTANA3, by itself, creates a new VENTANA3 or raises the existing
%      singleton*.
%
%      H = VENTANA3 returns the handle to a new VENTANA3 or the handle to
%      the existing singleton*.
%
%      VENTANA3('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in VENTANA3.M with the given input arguments.
%
%      VENTANA3('Property','Value',...) creates a new VENTANA3 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Ventana3_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Ventana3_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 Ventana3

% Last Modified by GUIDE v2.5 31-Oct-2007 22:52:18

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Ventana3_OpeningFcn, ...
                   'gui_OutputFcn',  @Ventana3_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 Ventana3 is made visible.
function Ventana3_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 Ventana3 (see VARARGIN)

% Choose default command line output for Ventana3
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Ventana3 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Ventana3_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;
axes(handles.axes6);
imagen=imread('background','jpeg');
image(imagen)
axis off
load efecto
sound(efecto,22000)
axes(handles.axes1);
plot(0,0)
grid on
axes(handles.axes2);
plot(0,0)
grid on
axes(handles.axes3);
plot(0,0)
grid on

% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

s= load('-ascii','se馻les.txt');
t1=s(1,:);
t2=s(2,:);
t3=s(3,:);
t4=s(4,:);
y1=s(5,:);
y2=s(6,:);
y3=s(7,:);
axes(handles.axes1);
plot(t1,y1)
grid on
title('y1=sin(2*pi*f1*t)')
axes(handles.axes2);
plot(t2,y2)
grid on
title('y2=cos(2*pi*f2*t)')
axes(handles.axes3);
plot(t3,y3)
grid on
title('y3=sin(2*pi*f3*t)+cos(2*pi*f4*t)')

% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -