首页->【MATLAB Usage 】

13 1

function  ui_ch_disp(v,dis2,fs,t)
%UI_CH_DISP 此处显示有关此函数的摘要
%   此处显示详细说明
%
[N,N_active]=size(v);
[N1,N_element]=size(dis2);
v=v/max(max(v));
dis2=dis2/max(max(dis2));

for i=1:N_active
    h1=subplot(2,1,1);plot((0:N-1),v(:,i)+i);hold on   
end

hold off

for i=1:N_element
 h2=subplot(2,1,2);plot((0:N1-1),dis2(:,i)+i), hold on   
end
hold off
title(h1,'raw data');
xlabel(h1,'Sample')
ylabel(h1,'Normalized response')
title(h2,'focus  data');
xlabel(h2,'Sample')
ylabel(h2,'Normalized response')
%
% plot((0:N-1)/fs+t,sum(v'))
% title('Summed response')
% xlabel('Time [s]')
% ylabel('Normalized response')
end


图片.png

作者于2017-07-26 17:40:07修改!
楼主可见

  1. shwnyoo 1#

    仅供参考,一起学习