%% sweep_polar.m % Script scans polar directory for all completed airfoils. If the polar % data appears to be incomplete, the file is deleted. airfoils = struct('name',0,'coord',0,'polar',... struct('alfa',0,'cl',0,'cd',0,'cm',0)); dirlist = dir('airfoils/*.dat'); 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