Facebook
From asdas, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 236
  1. clc
  2. clear all
  3. close(gcf);
  4. disp('Zapis danych w pliku tekstowym *.txt');
  5. x=[0:2*pi/20:4*pi]
  6. ys=3*sin(x);
  7. yc=4*cos(x);
  8. z=[x; ys; yc];
  9. [p s]=uiputfile('*.txt','Podaj nazwÄ™ pliku');
  10. nazwa=strcat(s,p);
  11. fid=fopen(nazwa,'wt');
  12. fprintf(fid,'%5.3f    %6.3f    %6.3f   \n',z);
  13. fclose(fid);
  14. plot(x,ys,x,yc)
  15. grid on
  16.