%% sweep_polar.m % Script scans polar directory for all completed airfoils. If the polar % data appears to be incomplete, the file is deleted. dirlist = dir('complete/*.polar'); n = 0; for ii = 1:length(dirlist) fname = dirlist(ii).name; if ~check_foil(fname) % delete(['complete/',fname]) n= n+1; disp([fname,' is invalid!']) end end