fid =fopen returns -1 when creating a new file

1 vue (au cours des 30 derniers jours)
Dominick Shinal
Dominick Shinal le 24 Fév 2020
Commenté : Dominick Shinal le 24 Fév 2020
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?

Réponse acceptée

Bhaskar R
Bhaskar R le 24 Fév 2020
Modifié(e) : Bhaskar R le 24 Fév 2020
You forgot the coma
fid=fopen('pressure_output.txt','w');
  1 commentaire
Dominick Shinal
Dominick Shinal le 24 Fév 2020
Ah you hate to post the question only to hear that you missed a coma

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Low-Level File I/O dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by