% if you have a sinewave in linear space, then plot in loglog space,
% you need to draw a log2(sin(2..^ to get the same shape uniformly spaced

subplot(111);clg
q=(100:199)/100;
f= 2 + sin(2*pi*q);
subplot(311);
grid; title('f = sine with d.c. offset'); xlabel('q'); ylabel('f');
plot(q,f);
subplot(312);
Q=log(q)/log(2);
F=log(f)/log(2);
title('loglog plot of offset sine'); xlabel('Q'); ylabel('F');
plot(Q,F);
subplot(313);
title('same curve shape on uniformly plotted points'); xlabel('Q'); ylabel('F');
% unfortnately gives 2 cycles plot(sin(2*pi*2..^q))
%plot(log(2 + sin(2*pi*2..^((0:99)/100)))/log(2));
plot(log(2 + sin(2*pi*2..^(q-1)))/log(2));

