WAFOCLEANUP Clears global variables defined and used by the WAFODEMO
001 % WAFOCLEANUP Clears global variables defined and used by the WAFODEMO 002 % 003 004 global pwdstr WAFOFIGNUM 005 006 if isempty(WAFOFIGNUM) 007 disp('You must start wafodemo in order to run this script') 008 return 009 end 010 if ~isempty(pwdstr) 011 cd(pwdstr) % cd to the directory where wafodemo was started 012 end 013 % clear Defined Globals 014 %~~~~~~~~~~~~~~~~~~~~~~~~~~~ 015 clear global pwdstr wafomenulabels xn Jxn Nxr map wind 016 clear global Fs % sampling frequency for torsethaugen 017 clear global St Hm0 Tp % torsethaugen output, input Fig 2 018 clear global xt Nsim Iseed % spec2sdat output , input Fig1 019 clear global Ste L % dat2spec output, input Fig2 020 clear global fTt fTte u Np nit speed % spec2thpdf output, input Fig3 021 clear global Tt rate % dat2wa output, input Fig3 022 clear global ma mb sp % spreading input Fig4 023 024 clear global fTcfAc NNp Nh Nnit Nspeed % spec2thpdf output, input Fig5 025 clear global NVcf NHd Nrate % dat2steep output, input Fig5 026 027 clear global fTcfAcTc JNp Jh Jnit Jspeed % spec2thpdf output, input Fig6 028 clear global JTcf JAc Jind Jrate % dat2steep output, input Fig6 029 030 clear global kdeTt kernel hs L2 % kdebin input: kernel, smoothing (Fig3) 031 clear global kdeVcfHd Nkernel Nhs NL2 % and transformation parameter, (Fig5) 032 clear global kdeTcfAcTc Jkernel Jhs JL2 % respectively (Fig6) 033 034 WAFOFIGNUM=0; 035 %end
Comments or corrections to the WAFO group