I am trying to open a file for writing using a command as follows:
fid = fopen('myfile')
However, when I use the FWRITE function as follows:
fwrite(fid,data)
MATLAB gives me an error message:
fid = -1 ??? Error using ==> fwrite Invalid file identifier. Error in ==> ConvertAndFileBiasData at 6 fwrite(fid,data)
Best Answer