MATLAB: Just a command about fprint

doit4mefprintfhomeworkscript

how can I use fprint?

Best Answer

I suggest you try and practice instead of going to forums directly. Play around with this code a bit and get familiar with it and really try to understand how and why it works.
ang = pi*rand(1,20);
A = 1; B = 1; % Choose A and B
y = A.*cos(ang)./(B.*sin(ang));
z = [ang; y];
fid = fopen('yournamesurname.txt', 'wt');
fprintf(fid, '%f\t\t%f\n', z);
fclose(fid);