How do I write the data of one file ('source.dat') to another ('result.dat') using fprintf?
I tried,
fid=fopen('source.dat')%I then manipulate the data of fid to my liking
result=fopen('result.dat','w')fprinf(fid, desired format here)
Why am I getting an out-of-range error?
Best Answer