Essays.club - Dissertations, travaux de recherche, examens, fiches de lecture, BAC, notes de recherche et mémoires
Recherche

Guérir par le rire

Par   •  29 Novembre 2017  •  2 479 Mots (10 Pages)  •  496 Vues

Page 1 sur 10

...

On affiche Fe, F0, A, ε et λ dans des sliders, un menu déroulant proposant les différentes fonctions possibles, un bouton poussoir permettant la représentétion graphique du signal ainsi que de sa transformée de Fourier dans deux graphes séparés.

Voici, ci-après le programme complet :

function varargout = interface_h_m(varargin)

% INTERFACE_H_M MATLAB code for interface_h_m.fig

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

% singleton*.

%

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

% the existing singleton*.

%

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

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

%

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

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

% applied to the GUI before interface_h_m_OpeningFcn gets called. An

% unrecognized property name or invalid value makes property application

% stop. All inputs are passed to interface_h_m_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 interface_h_m

% Last Modified by GUIDE v2.5 04-Dec-2016 21:19:24

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

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

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @interface_h_m_OpeningFcn, ...

'gui_OutputFcn', @interface_h_m_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 interface_h_m is made visible.

function interface_h_m_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 interface_h_m (see VARARGIN)

% Choose default command line output for interface_h_m

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

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

% uiwait(handles.figure1);

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

function varargout = interface_h_m_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 slider movement.

function text1_Callback(hObject, eventdata, handles)

% hObject handle to text1 (see GCBO)

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

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

global A

A=get(hObject,'Value');

set(handles.text1,'string',['Valeur de A : ',num2str(A)]);

% Hints: get(hObject,'Value') returns position of slider

% get(hObject,'Min') and get(hObject,'Max') to determine range of slider

% --- Executes during object creation, after setting all properties.

function

...

Télécharger :   txt (20.1 Kb)   pdf (126.3 Kb)   docx (24.3 Kb)  
Voir 9 pages de plus »
Uniquement disponible sur Essays.club