fid =fopen returns -1 when creating a new file

2 次查看(过去 30 天)
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?

采纳的回答

Bhaskar R
Bhaskar R 2020-2-24
编辑:Bhaskar R 2020-2-24
You forgot the coma
fid=fopen('pressure_output.txt','w');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by