hold on;
for i=2:c
[x,y] = hist(lsp(:,i),100);
- legend = sprintf(";%d;",i);
+ if (mod(i,2))
+ legend = sprintf(";%d;",i);
+ else
+ legend = sprintf("1;%d;",i);
+ endif
plot(y*4000/pi,x,legend);
endfor
hold off;
clf;
subplot(211)
[x,y] = hist(lsp(:,1),100);
- plot(y,x,";1;");
+ plot(y*4000/pi,x,"1;1;");
hold on;
for i=2:5
[x,y] = hist(lsp(:,i) - lsp(:,i-1),100);
- legend = sprintf(";%d;",i);
- plot(y,x,legend);
+ legend = sprintf("%d;%d;",i,i);
+ plot(y*4000/pi,x,legend);
endfor
hold off;
grid;
subplot(212)
[x,y] = hist(lsp(:,6)-lsp(:,5),100);
- plot(y,x,";6;");
+ plot(y*4000/pi,x,"1;6;");
hold on;
for i=7:c
[x,y] = hist(lsp(:,i) - lsp(:,i-1),100);
- legend = sprintf(";%d;",i);
- plot(y,x,legend);
+ legend = sprintf("%d;%d;",i-5,i);
+ plot(y*4000/pi,x,legend);
endfor
hold off;
grid;