美文网首页
fopen函数

fopen函数

作者: 大魔王是本人 | 来源:发表于2017-10-13 16:36 被阅读11次

fileID = fopen(filename,permission)opens the file with the type of access specified by permission.

f'ilename: Name of the file to open, including the file extension, specified as a string. If the file is not in the current folder, file name must include a full or a relative path.

If you open a file with read access and the file is not in the current folder, then fopen searches along the MATLAB search path.

If you open a file with write or append access and the file is not in the current folder, then fopen creates a file in the current directory.

出错:数据不在同一folder内。

'wb':文件系统会按纯粹的二进制格式进行操作,因此也就不存在格式转换的问题了。

返回值:If fopen cannot open the file, then fileID is -1.

fileID =  returns an integer file identifier equal to or greater than 3. MATLAB®reserves file identifiers0,1, and2for standard input, standard output (the screen), and standard error, respectively.

相关文章

网友评论

      本文标题:fopen函数

      本文链接:https://www.haomeiwen.com/subject/qcwzyxtx.html