No BSD License  

Highlights from
speech processing tool

image thumbnail
from speech processing tool by MEKHMOUKH Abdenour
speech processing tool

menu(varargin)
function varargout = menu(varargin)
% MENU M-file for menu.fig
%      MENU, by itself, creates a new MENU or raises the existing
%      singleton*.
%
%      H = MENU returns the handle to a new MENU or the handle to
%      the existing singleton*.
%
%      MENU('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in MENU.M with the given input arguments.
%
%      MENU('Property','Value',...) creates a new MENU or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before menu_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to menu_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 menu

% Last Modified by GUIDE v2.5 27-Sep-2006 09:21:45

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @menu_OpeningFcn, ...
                   'gui_OutputFcn',  @menu_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin & isstr(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 menu is made visible.
function menu_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 menu (see VARARGIN)

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

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = menu_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 checkbox1.
function checkbox1_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox1 (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 checkbox1
cb1=get(hObject,'Value');
h=guidata(gcbo); 
if cb1==1 
   set(h.description,'Visible','on'); 
   set(h.checkbox2,'Enable','off'); 
   set(h.checkbox3,'Enable','off');
   set(h.checkbox4,'Enable','off'); 
   set(h.checkbox5,'Enable','off');
   set(h.checkbox6,'Enable','off');
   Analysecourtterme;
end;

if cb1==0
   set(h.description,'Visible','off'); 
   set(h.checkbox2,'Enable','on'); 
   set(h.checkbox3,'Enable','on');
   set(h.checkbox4,'Enable','on'); 
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;


% --- Executes on button press in checkbox2.
function checkbox2_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox2 (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 checkbox2
cb2=get(hObject,'Value');
h=guidata(gcbo); 
if cb2==1
   set(h.checkbox1,'Enable','off'); 
   set(h.checkbox3,'Enable','off');
   set(h.checkbox4,'Enable','off'); 
   set(h.checkbox5,'Enable','off');
   set(h.checkbox6,'Enable','off');
   analysehomomorphique;
end;

if cb2==0
   set(h.checkbox1,'Enable','on'); 
   set(h.checkbox3,'Enable','on');
   set(h.checkbox4,'Enable','on'); 
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;

% --- Executes on button press in checkbox3.
function checkbox3_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox3 (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 checkbox3
cb3=get(hObject,'Value');
h=guidata(gcbo); 
if cb3==1
   set(h.checkbox1,'Enable','off'); 
   set(h.checkbox2,'Enable','off');
   set(h.checkbox4,'Enable','off'); 
   set(h.checkbox5,'Enable','off');
   set(h.checkbox6,'Enable','off');
   synthese;
end;

if cb3==0
   set(h.checkbox1,'Enable','on'); 
   set(h.checkbox2,'Enable','on');
   set(h.checkbox4,'Enable','on'); 
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;
% --- Executes on button press in checkbox4.
function checkbox4_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox4 (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 checkbox4
cb4=get(hObject,'Value');
h=guidata(gcbo); 
if cb4==1
   set(h.checkbox1,'Enable','off'); 
   set(h.checkbox2,'Enable','off');
   set(h.checkbox3,'Enable','off'); 
   set(h.checkbox5,'Enable','off');
   set(h.checkbox6,'Enable','off');
   predictionfig;
end;

if cb4==0
   set(h.checkbox1,'Enable','on'); 
   set(h.checkbox2,'Enable','on');
   set(h.checkbox3,'Enable','on'); 
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;

% --- Executes on button press in checkbox5.
function checkbox5_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox5 (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 checkbox5
cb5=get(hObject,'Value');
h=guidata(gcbo); 
if cb5==1
   set(h.checkbox1,'Enable','off'); 
   set(h.checkbox2,'Enable','off');
   set(h.checkbox3,'Enable','off'); 
   set(h.checkbox4,'Enable','off');
   set(h.checkbox6,'Enable','off');
   formant;
end;

if cb5==0
   set(h.checkbox1,'Enable','on'); 
   set(h.checkbox2,'Enable','on');
   set(h.checkbox3,'Enable','on'); 
   set(h.checkbox4,'Enable','on');
end;
% --- 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)
button = questdlg('Voulez Vous fermer ?', ...
                  'Quiter l''application','Oui','Non','No');
switch button
  case 'Oui',
      clc;
disp('*******************************************************************');
disp('************     Dveloppe par :MEKHMOUKH Abdenour   *************');
disp('************        Dpartement d''Electronique        *************');
disp('************      Universit de Bejaia Aot 2006      *************');
disp('*******************************************************************');
      close;
  case 'Non',
    quit cancel;
end

% --- 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)


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


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


% --- Executes on button press in checkbox6.
function checkbox6_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox6 (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 checkbox6
cb6=get(hObject,'Value');
h=guidata(gcbo); 
if cb6==1 
   set(h.checkbox1,'Enable','off');
   set(h.checkbox2,'Enable','off'); 
   set(h.checkbox3,'Enable','off');
   set(h.checkbox4,'Enable','off'); 
   set(h.checkbox5,'Enable','off');
lecture;
end;

if cb6==0
   set(h.checkbox1,'Enable','on');
   set(h.checkbox2,'Enable','on'); 
   set(h.checkbox3,'Enable','on');
   set(h.checkbox4,'Enable','on'); 
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;


% --- Executes on button press in cb7.
function cb7_Callback(hObject, eventdata, handles)
% hObject    handle to cb7 (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 cb7
cb7=get(hObject,'Value');
h=guidata(gcbo); 
if cb7==1
   set(h.checkbox1,'Enable','off'); 
   set(h.checkbox2,'Enable','off');
   set(h.checkbox3,'Enable','off'); 
   set(h.checkbox4,'Enable','off');
   set(h.checkbox5,'Enable','off');
   set(h.checkbox6,'Enable','off');
   vnvoise;
end;

if cb7==0
   set(h.checkbox1,'Enable','on'); 
   set(h.checkbox2,'Enable','on');
   set(h.checkbox3,'Enable','on'); 
   set(h.checkbox4,'Enable','on');
   set(h.checkbox5,'Enable','on');
   set(h.checkbox6,'Enable','on');
end;

Contact us at files@mathworks.com