qfile = fopen('quadratzahlen.txt','w');
for a = [1:10]
  fprintf(qfile,'%f %f\n',a,a.^2);
end
fclose(qfile);