In the workspace when I do:
>> fid = fopen('aa.txt', 'w');>> fprintf(fid, 'test \n');
the answer is:
Error using fprintfInvalid file identifier. Use fopen to generate a valid file identifier.
file identifierfopenfprintfMATLAB
>> fid = fopen('aa.txt', 'w');>> fprintf(fid, 'test \n');
Error using fprintfInvalid file identifier. Use fopen to generate a valid file identifier.
Best Answer