Matlab中无效的文件标识符 [英] Invalid file identifier in matlab
本文介绍了Matlab中无效的文件标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用textscan(fID,format)
读取文本文件.但是,我告诉我Invalid file identifier. Use fopen to generate a valid file identifier
时出错.我使用fopen
生成fID并得到-1.我不记得曾经见过-1的标识符.有可能吗?
I'm trying to read a text file using textscan(fID,format)
. However, I get an error telling me Invalid file identifier. Use fopen to generate a valid file identifier
. I used fopen
to generate fID and got -1. I don't remember having ever seen an identifier to -1. Is it possible?
推荐答案
如果 fopen
无法打开文件,则fID
为-1.
可能的原因:
- 错误的文件路径.
- 损坏的文件.
- 文件不存在
- 文件已在使用中.
这篇关于Matlab中无效的文件标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文