fp=fopen('mystuff.asc','wt');
for ii=1:length(time)
fprintf(fp,'%4.0f\t%2.0f\t%2.0f\t%2.0f\t%8.4f\t%e\t%7.4f\t%4.0f\t%7.4f\t%7.4f\t%8.4f\t%8.4f\t%e\t%e\t%e\t%8.4f\t%8.4f',time(ii,1:4),bp(ii,:),jd(ii,:),ws(ii,:),wd(ii,:),u(ii,:),v(ii,:),at(ii,:),rh(ii,:),tau(ii,:),taux(ii,:),tauy(ii,:),qsen(ii,:),qlat(ii,:));
fprintf(fp,'\n');
end
fclose(fp);
type 'mystuff.asc'
