亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? plot_snd_vibs.m

?? 我認(rèn)為很不錯(cuò)的語(yǔ)音處理的matlab源代碼
?? M
字號(hào):
function [h, h2, wb_th_array]=plot_snd_vibs(SP, t_SP, vibs, t_vibs, Tool_Name, filename1, indices2, SP_local_max2, same_ylim, plot_str  )
% % plot_snd_vibs(: plots sound and vibrations data in the time domain
% % 
% % Syntax: 
% % 
% % [h, h2, wb_th_array]=plot_snd_vibs(SP, t_SP, vibs, t_vibs, Tool_Name, filename1, indices2, SP_local_max2, same_ylim, plot_str  );
% % 
% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % 
% % Description
% %  
% % This progam plots the time record and appends a circle at points 
% % specified by indices2.  for sound and vibrations data and 
% % returns a handle to the figure and an array of handles to the subaxes.
% % 
% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% % Input Arguments
% %
% % 
% %
% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % 
% % Output Arguments
% %
% %
% %
% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Example='';
% SP=rand(1, 50000);        % Pa sound pressure time record  waveform
% Fs_SP=50000;              % Hz sampling rate
% vibs=rand(1, 50000);      % m/s^2 acceleration time record  waveform
% Fs_vibs=50000;            % Hz sampling rate
% Tool_Name='Hammer Drill'; % string input to determine the Name of the
%                           % test device.  Tool_Name=1; will cause the 
%                           % program to seach a variable named Description 
%                           % for the Tool_Name.
% filename1='data_1.txt';   % filename that appears in the plot title
% indices2={};              % indices to append circles to indicate the
%                           % locations of the impulsive peaks. 
%                           % 
% SP_local_max2={};         % sound pressures of the impulsive peaks 
% same_ylim=1;              % 1 will set all of the ylimits of each of the 
%                           % channels to the same value.
% plot_str={'Protected', 'Unprotected'};  
%                           % Add a string to each subaxes indicating the 
%                           % meaning of the data.  For hearing protector 
%                           % research one microphone is under the 
%                           % hearing protector so it is 'Protected'
%                           % and the other microphone is exposed so it is
%                           % 'Unprotected'.
%                           
% [h, h2, wb_th_array]=plot_snd_vibs(SP, t_SP, vibs, t_vibs, Tool_Name, filename1, indices2, SP_local_max2, same_ylim, plot_str  );
%
% % Output Variables
% %     
% % h is the handle for the figure. 
% % 
% % h2 is the array of handles for the subaxes.
% % 
% % wb_th_array is the array of handles for the text descriptions of the
% % sensors.
% % 
% % 
% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% % Program Written by Edward L. Zechmann 
% %
% %     date 10 August      2007
% %
% % modified 19 December    2007    added comments
% %
% % modified  7 January     2008    fixed a big in initializing 
% %                                 plot_str  
% %                                 made input arguments optional 
% %                                 added additional comments
% %
% % modified  5 September   2008    Updated Comments
% %     
% %  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % 
% % Please feel free to modify this code.
% % 

if nargin < 1
    SP=randn(2, 50000);
end

if nargin < 2
    t_SP=1/50000*(1:50000);
end

if nargin < 3
    vibs=randn(2, 50000);
end

if nargin < 4
    t_vibs=1/50000*(1:50000);
end

if nargin < 5
    Tool_Name='';
end

if nargin < 6
    filename1='';
end

if nargin < 7
    indices2={};
end

if nargin < 8
    SP_local_max2={};
end

if nargin < 9
    same_ylim=0;
end

% make sure that input data is double precision.  
[SP, vibs, t_SP, t_vibs]=convert_double(SP, vibs, t_SP, t_vibs);

% The amount of space between the margin and the waveform
per_mar=0.16; 

% initilize the figure margins, spacings, and dimensions
sh=0.0;
sv=0.0;
ml=0.14;
mr=0.1;
mt=0.08;
mb=0.12;

% determine the number of sub plots
[m1, n1]=size(SP);
[m2, n2]=size(vibs);
last_x_axis=m1+m2;
        
if m1 > 0 && m2 > 0
    nn=m1+m2+1;
else
    nn=m1+m2;
end

% initialize the figures
h=figure(1); 
delete(h);
h=figure(1);
h1=[];
h2=[];
wb_th_array=zeros(1, m1+m2);

% determine the y-axis limits
% the uppeer and lower limits are the same
if same_ylim == 1
    ylim1=per_mar*ceil( 10*(max(max(abs(SP)))) );
end

% determine the x-axis limits
min_t=min([min(t_SP'), min(t_vibs')]);
max_t=max([max(t_SP'), max(t_vibs')]);

% determine whether to resample the plot or not
% data processing becomes too slow when the number of data points 
% becomes too high.
% 1,000,000 data points is the cutoff for implementing thr resampling
% routine
tot_num_samples=m1*n1+m2*n2;
flag_rs=0;
if tot_num_samples > 1000000
	flag_rs=1;
end

% initialize the plot_str
if nargin < 10 
    plot_str=cell(last_x_axis, 1);
    for e1=1:last_x_axis;
        plot_str{e1,1}='';
    end
end

% if the plot_str is too small then add more emmpty string elements
if length(plot_str) < last_x_axis
    for e1=(length(plot_str)+1):last_x_axis;
        plot_str{e1}='';
    end
end

% plot the sound data
for e2=1:m1;

    if e2 == 1
        subaxis(nn, 1, 1, 'sh', sh, 'sv', sv , 'pl', 0, 'pr', 0, 'pt', 0, 'pb', 0, 'ml', ml, 'mr', mr, 'mt', mt, 'mb', mb); 
    else
        subaxis(nn, 1, e2, 'sh', sh, 'sv', sv , 'pl', 0, 'pr', 0, 'pt', 0, 'pb', 0, 'ml', ml, 'mr', mr, 'mt', mt, 'mb', mb); 
    end
    t_SP_rs=[];
    SP_rs=[];
    if flag_rs == 1
        [t_SP_rs, SP_rs]=resample_plot(t_SP, SP(e2, :));
        plot(t_SP_rs, SP_rs');
        clear('t_SP_rs');
        clear('SP_rs');
    else
        plot(t_SP, SP(e2, :)');
    end
	hold on;
	h1=gca;
	h2=[h2 h1];
    
    if e2 == floor((m1+1)/2)
        ylabel('Sound (Pa)', 'Fontsize', 16);
    end
    
    if same_ylim ~= 1
        ylim1=per_mar*ceil( 10*(max(max(abs(SP(e2, :))))) );
    end
    
    ylim(ylim1*[-1 1]);
    xlim([min_t max_t]);
    set(gca, 'Fontsize', 12, 'box', 'off' );
    hold on;
    if e2 == 1
        title( [Tool_Name, ', ', filename1], 'Interpreter', 'none', 'Fontsize', 15 );
    end

    if e2 ~= last_x_axis
        set(gca, 'xtick', [], 'XTickLabel', '');
    end
    
    [ytick_m, YTickLabel1, ytick_good, ytick_new, yticklabel_new]=fix_YTick(0);
    wb_th=text( max_t-0.02*(max_t-min_t), -0.98*ylim1, ['Mic ', num2str(e2), ' ', plot_str{e2}], 'Fontsize', 10, 'Color', [0 0 0], 'HorizontalAlignment', 'right', 'VerticalAlignment', 'bottom', 'BackgroundColor', 'none', 'Interpreter', 'none' );
    
    wb_th_array(e2)=wb_th;
    
    if nargin >= 8 
        if max(size(indices2)) >= e2 && max(size(SP_local_max2)) >= e2 
            
            plot((t_SP(2)-t_SP(1))*indices2{e2}, SP_local_max2{e2}, 'ok', 'linestyle', 'none', 'markersize', 7, 'LineWidth', 2);
            
            for e1=1:length(indices2{e2});
                if mod(e1, 2) > 0
                    signum1=1;
                    text((t_SP(2)-t_SP(1))*indices2{e2}(e1), 0.98*ylim1, num2str(e1), 'color', [0 0 0], 'Fontsize', 12, 'HorizontalAlignment', 'center', 'VerticalAlignment', 'top', 'Interpreter', 'none');
                else
                    signum1=-1;
                end
            end
            
        end
    end
    
end
        
% add the lines around the perimeter of the plot
if length(h2) >= 1
	psuedo_box(h2);
end

if same_ylim == 1
    ylim2=per_mar*ceil( 10*(max(max(abs(vibs)))) );    
end


% plot the vibrations data
for e2=1:m2;
    
    if same_ylim ~= 1
    	ylim2=per_mar*ceil( 10*(max(max(abs(vibs(e2, :))))) );   
    end

    if e2==1;
    	if m1 < 1
        	subaxis(nn, 1, 1, 'sh', sh, 'sv', sv , 'pl', 0, 'pr', 0, 'pt', 0, 'pb', 0, 'ml', ml, 'mr', mr, 'mt', mt, 'mb', mb); 
        else
        	subaxis(nn, 1, m1+e2, 'sh', sh, 'sv', sv , 'pl', 0, 'pr', 0, 'pt', 0, 'pb', 0, 'ml', ml, 'mr', mr, 'mt', mt, 'mb', mb); 
        end
    else
    	subaxis(nn, 1, m1+e2, 'sh', sh, 'sv', sv , 'pl', 0, 'pr', 0, 'pt', 0, 'pb', 0, 'ml', ml, 'mr', mr, 'mt', mt, 'mb', mb); 
    end
    t_vibs_rs=[];
    vibs_rs=[];
    
    if flag_rs == 1
    	[t_vibs_rs, vibs_rs]=resample_plot(t_vibs, vibs(e2, :));
    	plot(t_vibs_rs, vibs_rs');
        clear('t_vibs_rs');
        clear('vibs_rs');
    else
    	plot(t_vibs, vibs(e2, :)');
	end
    h2=[h2 gca];   
    
    if e2 == floor((m2+1)/2)
        ylabel('Vibs (m/s^2)', 'Fontsize', 16);
    end
    
    hold on;
    if m1+e2 == 1
        title( [Tool_Name, ' Filename ', filename1], 'Interpreter', 'none', 'Fontsize', 15 );
    end
    
    ylim(ylim2*[-1 1]);
    xlim([min_t max_t]);
    set(gca, 'Fontsize', 12, 'box', 'off' );
    if m1+e2 ~= last_x_axis
        set(gca, 'xtick', [], 'XTickLabel', '');
    end
    
    [ytick_m, YTickLabel1, ytick_good, ytick_new, yticklabel_new]=fix_YTick(0);
                
    wb_th=text( max_t-0.02*(max_t-min_t), -0.98*ylim2, ['Accel Channel ', num2str(e2), ' ', plot_str{m1+e2}], 'Fontsize', 10, 'Color', [0 0 0], 'HorizontalAlignment', 'right', 'VerticalAlignment', 'bottom', 'BackgroundColor', 'none', 'Interpreter', 'none' );
    wb_th_array(m1+e2)=wb_th;
    
    if nargin >= 8 

        if max(size(indices2)) > e2 && max(size(SP_local_max2)) > e2
            plot((t_vibs(2)-t_vibs(1))*indices2{e2}, SP_local_max2{e2}, 'ok', 'linestyle', 'none', 'markersize', 7);


            for e1=1:length(indices2{e2});
                if mod(e1, 2) > 0
                    signum1=1;
                    text((t_SP(2)-t_SP(1))*indices2{e2}(e1), 0.98*ylim2, num2str(e1), 'color', [0 0 0], 'Fontsize', 12, 'HorizontalAlignment', 'center', 'VerticalAlignment', 'top', 'Interpreter', 'none');
                else
                    signum1=-1;
                end
            end
        end
    end
    
end
     
% add the lines around the perimeter of the plot
if length(h2(m1+[1:m2])) >= 1
    psuedo_box(h2(m1+[1:m2]));
end

% set the x_label for the plot
xlabel('Time (seconds)', 'Fontsize', 16);


?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩视频一区二区| 亚洲另类色综合网站| 99re6这里只有精品视频在线观看| 亚洲bdsm女犯bdsm网站| 国产日韩欧美在线一区| 欧美二区乱c少妇| www.成人网.com| 欧美三级日韩三级| 国产成人在线影院| 日本aⅴ免费视频一区二区三区| 最新国产の精品合集bt伙计| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产亚洲欧美在线| 4438成人网| 欧美在线一区二区三区| 顶级嫩模精品视频在线看| 久久精品免费观看| 午夜精品久久一牛影视| 亚洲激情中文1区| 国产精品久久久久久久久晋中| 26uuu亚洲| 日韩欧美国产一区在线观看| 欧美探花视频资源| 一本一道波多野结衣一区二区| 国产精一品亚洲二区在线视频| 欧美aaaaaa午夜精品| 婷婷中文字幕综合| 午夜av一区二区| 亚洲大尺度视频在线观看| 亚洲欧美日韩国产综合在线| 国产精品国产自产拍在线| 久久精品日产第一区二区三区高清版| 欧美zozo另类异族| 日韩久久久精品| 日韩精品一区二区三区在线观看 | 国产免费观看久久| 亚洲精品一区二区三区精华液| 日韩女优av电影在线观看| 日韩一区二区三区av| 亚洲乱码日产精品bd| 中文字幕亚洲不卡| 18欧美亚洲精品| 亚洲女人小视频在线观看| 成人欧美一区二区三区白人| 亚洲人成影院在线观看| 亚洲精品视频在线看| 一区二区三区资源| 午夜影院久久久| 蜜桃一区二区三区在线观看| 久久成人av少妇免费| 国产在线一区二区| 成人午夜大片免费观看| 91色乱码一区二区三区| 欧洲中文字幕精品| 欧美精品在线视频| 欧美成人女星排名| 国产精品午夜在线| 一区二区三区日本| 日韩电影免费在线观看网站| 久久国产免费看| 国产xxx精品视频大全| 99re66热这里只有精品3直播 | www.66久久| 欧美亚洲动漫制服丝袜| 欧美肥妇毛茸茸| 精品少妇一区二区| 欧美国产精品中文字幕| 亚洲黄色小视频| 青青草成人在线观看| 风间由美一区二区av101| 91麻豆.com| 欧美肥妇bbw| 国产欧美日韩激情| 亚洲在线视频一区| 激情图区综合网| 91美女福利视频| 欧美一级生活片| 国产精品成人免费 | 99精品欧美一区二区三区综合在线| 91福利小视频| 欧美xxxxx牲另类人与| 国产精品伦一区| 婷婷久久综合九色综合伊人色| 国产一区二区在线观看免费| 在线视频一区二区免费| 精品国产乱码久久久久久久久| 亚洲日穴在线视频| 麻豆精品精品国产自在97香蕉| 不卡的av电影在线观看| 日韩一区二区电影在线| 国产精品灌醉下药二区| 日韩二区三区四区| 色综合久久中文字幕综合网| 日韩精品一区二| 怡红院av一区二区三区| 国产精品一线二线三线精华| 欧美日韩一卡二卡三卡 | 欧美日韩国产欧美日美国产精品| 国产午夜精品美女毛片视频| 日韩在线一二三区| 99国产精品99久久久久久| 精品国产麻豆免费人成网站| 亚洲成人av福利| 不卡的av在线播放| 久久久久久久久久久电影| 偷窥国产亚洲免费视频| 91蝌蚪porny成人天涯| 久久久一区二区| 免费视频一区二区| 欧美日韩一区视频| 国产成人综合网站| 3atv一区二区三区| 亚洲高清视频的网址| 99视频超级精品| 久久久www成人免费毛片麻豆| 日韩成人免费看| 91久久精品一区二区三区| 国产精品美女久久久久aⅴ| 国产一区二区三区四区在线观看| 69av一区二区三区| 亚洲午夜久久久久久久久电影院| 99久久精品免费看| 国产精品国产成人国产三级| 丁香六月综合激情| 久久久精品综合| 国产精品一色哟哟哟| 欧美成人vr18sexvr| 久久成人麻豆午夜电影| 欧美mv和日韩mv的网站| 免费一区二区视频| 日韩免费观看高清完整版在线观看| 亚洲超碰97人人做人人爱| 欧美亚洲高清一区二区三区不卡| 亚洲欧美日韩国产一区二区三区| 成人福利在线看| 国产欧美日韩视频一区二区| 国产不卡一区视频| 国产午夜亚洲精品羞羞网站| 国产激情偷乱视频一区二区三区| 久久伊人中文字幕| 国产精品一区二区无线| 久久精品一区二区三区不卡| 国产尤物一区二区在线| 日本一区二区视频在线| 成人av在线播放网址| 国产精品久久久久久久久快鸭| 97精品久久久午夜一区二区三区| 中文字幕亚洲综合久久菠萝蜜| 91美女福利视频| 午夜视频一区二区三区| 7777精品伊人久久久大香线蕉完整版| 五月天久久比比资源色| 欧美一区二区三区免费视频| 激情文学综合丁香| 国产精品久久久一本精品| 国产精品久久久久久久久快鸭 | 精品亚洲porn| 国产女人水真多18毛片18精品视频| 成人性生交大片免费| 亚洲欧美一区二区三区极速播放| 欧美亚洲综合色| 久久精品国产在热久久| 中文字幕成人av| 欧洲一区在线电影| 麻豆91免费看| 国产精品丝袜一区| 欧美日韩一区中文字幕| 激情深爱一区二区| 亚洲日本va在线观看| 欧美日韩精品欧美日韩精品| 韩国女主播一区二区三区| 国产精品第13页| 在线播放国产精品二区一二区四区 | 一区在线观看免费| 欧美午夜精品电影| 国产精品影视网| 亚洲国产日韩一级| 国产三级一区二区| 欧美性色综合网| 韩国毛片一区二区三区| 亚洲精品国产品国语在线app| 日韩欧美一二三四区| 99麻豆久久久国产精品免费 | 国内久久精品视频| 亚洲免费伊人电影| 久久综合资源网| 欧美中文字幕一区二区三区| 韩国精品一区二区| 亚洲最大的成人av| 国产日韩欧美不卡| 4438x成人网最大色成网站| 成人v精品蜜桃久久一区| 蜜芽一区二区三区| 亚洲视频每日更新| 久久人人爽人人爽| 欧美日韩免费在线视频| 不卡的av中国片| 国精产品一区一区三区mba桃花| 亚洲一区二区三区中文字幕| 日本一区二区三区久久久久久久久不|