Code covered by the BSD License  

Highlights from
Logiciels temps réel

Logiciels temps réel

by

 

Real-time software concerning the domains of the signal processing, feedback and regulation

fft_zoom(src,eventdata)
function fft_zoom(src,eventdata)

c=get(gca,'child');
x=[];
y=[];
coul=[];
for k=1:1:length(c)
    if strcmp(get(c(k),'type'),'line')
        x=[x;get(c(k),'Xdata')];
        y=[y;get(c(k),'Ydata')];
        coul=[coul;get(c(k),'color')];
    end;
end;
sb=[get(gcf,'name'),'_bis'];
e=get(gcf,'position');
figure('name',sb);
set(gcf,'position',e)
[L,c]=size(x);
for k=1:1:L
    plot(x(k,:),y(k,:),'color',coul(k,:),'linewidth',2)
    hold on
end;
zoom xon

Contact us