To allow quick viewing and debugging, temporarily modify ``setup.m'' to work with a problem size of S=[4;6;8;]. Insert the following code block right after the computation of the lengths of the G vectors (where your code says ``G2=...''),
%# Locate edges (assume S's are even!) and determine max 'ok' G2
printf("Odd dimension in S, cannot continue!\n");
return;
endif
This block just checks, so that we can assume that the sizes S are
always even. After this check, insert the code blockedges=find( ... ); G2mx=min(G2(edges));where ``...'' is a logical statement identifying the edges of the Fourier box.
Tomas Arias 2005-05-04