% % Plots the surface for allu % % If text='no' or text='NO' no JPG files are produced % Usage: % wave_plotsurf(allt,ally,allu,L,t0,t1,'no') % % Ex: wave_plotsurf(allt,ally,allu,L,1,1001,'no') % % Ricardo Carretero (20/3/2001) % function [] = wave_plotsurf(allt,ally,allu,L,t0,t1,text) global DD fig1=1; fig2=0; fig3=1; fig4=1; jpg=1; moreplots=0*4+4; if(length(text)==2) if(text=='no'|text=='NO') jpg=0; end end if(L==0) L=ally(1); end [np,nl]=size(text); for i=1:np for j=1:nl if(text(i,j)=='_') text(i,j)='-'; end end end if(jpg) file1 = [text '_u.jpg'] file2 = [text '_Du.jpg'] file3 = [text '_uini_fin.jpg'] file4 = [text '_shade.jpg'] else fprintf('NOT saving JPG\n'); end if(t1==0) t0=1; t1=length(allt); end Dt=1 if(floor((t1-t0)/Dt)~=(t1-t0)/Dt) error('interval is not n*DT'); end if(t1+Dt0).*DD*(mp/MDD)-(DD<0).*DD*mp/mDD; %% the white is centered around zero %DD = (DD>0).*DD*(32/31)*(mp/MDD)-(DD<0).*DD*(mp/mDD); %% the white is centered around zero and the small fluctuations are hidden %DD = DD-(abs(DD)