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

📄 dsp1.m

📁 SPEECH ENCODING USING ADPCM
💻 M
字号:

close all;
%clear all;


%<Constants><Constants><Constants><Constants><Constants><Constants>

%get screen size

pos = get(0,'ScreenSize');

% colors


Bg_Color 		= [0.7 0.7 0.8];

Frame_Color2	= [0.9 0.8 0.8];
Frame_Color		= [0.8 0.8 0.9];
Button_Color1 	= [0.7 0.7 0.7];

% main buttons size
button_width = 160; 
button_height = 40; 

% main window size

% type 

%

% main_width = pos(3);
% main_heght = pos(4);
%

% if you want full screen window


main_width = 650;
main_height = 500;


% border
border = 10;
frame_border = 5;

% main frame size
x_bottom_frame1	= border;
y_bottom_frame1	= border;
x_top_frame1 	= main_width-2*border;
y_top_frame1 	= main_height-7*border;

% buttons
Top_Button 		= y_top_frame1-4*border;
Delta_Button 	= 50;
button_border 	= 20;
button_left   = ((main_width-border)-button_width)/2;


% title position
title_width  = 560;
title_left   = (main_width-title_width)/2;
%title_bottom = y_top_frame1+2*border; 
title_bottom = 200;
title_height = 100;

%</Constants></Constants></Constants></Constants></Constants></Constants>



[rgb] = imread([pwd,'\new3.JPG']);
% Loading title image..


%[rgb] = imread([pwd,'\title.jpg']);
[rgb] = imread([pwd,'\bis.JPG']);

% main window
hfig = figure('Name','ADPCM',...
	'NumberTitle','off',...
	'Resize','off',...
	'Visible','on',...
	'Position',[pos(3)/2-main_width/2 pos(4)/2-main_height/2-5 main_width main_height+20],...
   'MenuBar','none');


% Main Frame

%Main_Frm = uicontrol(hfig,...
%	'Style','frame',...
%	'position',[x_bottom_frame1 y_bottom_frame1 x_top_frame1 y_top_frame1],...
%	'BackGroundColor',Frame_Color,...
%	'ForeGroundColor',[0 0 0]);


% Affichage Title


%axes('position',[.1  .1  .5  .6])

image(rgb);
set(gca,'Position',[0.2 0.45 0.6 0.45]);
axis off;


% fond de la fenetre <principale
set(hfig, 'Color', Bg_Color)
% Zone de texte statique

Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',20,...
	'string',['Speech encoding using ADPCM' ...
						,' ']);
                
                Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-50 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['by' ...
						,' ']);
Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-100 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['Imran Zaka ' ...
						,' ']);
Title = uicontrol(hfig,...
	'style','text',...
	'position',[title_left title_bottom-150 title_width title_height],... % [from_left from_bottom width height]
	'BackgroundColor',Bg_Color,...
    'Fontweight','bold',...
    'FontSize',12,...
	'string',['Syed Hameed Qaiser ' ...
						,' ']);
% bouton poussoir OK
BPshow_eigenface=uicontrol(hfig, ...
	'style','push', ...
	'position',[button_left-100 title_bottom-150 button_width button_height], ...
	'string', 'Continue',...
    'callback','finalProj01');


	BPshow_eigenface=uicontrol(hfig, ...
	'style','push', ...
	'position',[button_left+100 title_bottom-150 button_width button_height], ...
	'string', 'Exit',...
    'callback','close');
%bouton poussoir OK

⌨️ 快捷键说明

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