|

楼主 |
发表于 2007-12-13 11:20
|
显示全部楼层
感谢指导.
uigetfile 我试了下,这个函数和我的问题好象关系不大,它得到的是文件的路径和名称.不知道有什么用.
在 DOS下运行 EXE 文件,终于看清了错误信息, 如下:
input the ant pattern data (提示输入 参数文件名)
'ant.txt' (敲入文件名,在MATLAB中就是这样操作的)
??? ERROR using ==>dlmread
the file ''ant.txt'' could not be opend because : Invalid argument
Error in ant12(主程序名) at 6 (第6行,即 F=dlmread(filename,'',1,0))
MATLAB:dlmread:fiel not opened
这个错误信息是说我没成功打开文件'ant.txt' 么? 但我在不用INPUT 指令,直接指定文件名的情况下,
如 F=dlmread('ant.txt','',1,0) 编译后成功运行,结果也正确. 问题到底在哪呢? |
|