function multiscaleplot(x)

%MULTISCALEPLOT    multiscaleplot(x) - dibuixa x a diferentes escales

%--------------------------------------------------------
%      Author: J. M. Aroca
%
%      e-mail: jomaroca@mat.upc.es
%--------------------------------------------------------

if length(x)>=2^8
   s=2^4;
   t=linspace(0,1,2^4);
   eixos = [0 1 min(x) max(x)];
   subplot(1,4,1), plot(t,x(s+1:8:(s+2^7))), axis(eixos);
   subplot(1,4,2), plot(t,x(s+1:4:(s+2^6))), axis(eixos);
	subplot(1,4,3), plot(t,x(s+1:2:(s+2^5))), axis(eixos);
	subplot(1,4,4), plot(t,x(s+1:(s+2^4))), axis(eixos);
else disp('llista massa curta')
end
return
