MATLAB: Fid =fopen returns -1 when creating a new file

create new filefidfopen

fid=fopen('pressure_output.txt''w')
I'm trying to have this create a new file with the given name. The return value for fid is -1. How would I go about creating a new file this way?

Best Answer

You forgot the coma
fid=fopen('pressure_output.txt','w');
Related Question