fid =fopen returns -1 when creating a new file

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Bhaskar R
Bhaskar R il 24 Feb 2020
Modificato: Bhaskar R il 24 Feb 2020
You forgot the coma
fid=fopen('pressure_output.txt','w');
  1 Commento
Dominick Shinal
Dominick Shinal il 24 Feb 2020
Ah you hate to post the question only to hear that you missed a coma

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by