简体   繁体   English

在Matlab 2011a中,需要加载的文件放在哪个文件夹中

[英]In Matlab 2011a the file that need to be loaded is put on which folder

I'm having problem with MATLAB 2011a ie I want to load file of data in my program but I can't access it as I keep it in bin folder C:\\Program Files\\MATLAB\\R2011a\\bin & there is no folder name as "work" as well. 我在MATLAB 2011a上遇到问题,即我想在程序中加载数据文件,但由于将其保存在bin文件夹C:\\ Program Files \\ MATLAB \\ R2011a \\ bin中而无法访问,并且没有文件夹名称作为“工作”。 so where should I keep my data file to load it. 所以我应该在哪里保存数据文件以进行加载。

You will generally have write access to the first folder listed by the userpath function (eg G:\\Users\\Jon\\Documents\\MATLAB), which is automatically added to the search path on startup of MATLAB. 通常,您将对userpath函数列出的第一个文件夹(例如G:\\ Users \\ Jon \\ Documents \\ MATLAB)具有写访问权,该文件夹在启动MATLAB时会自动添加到搜索路径中。

Note that adding folders to the path does NOT allow you to access non -MATLAB files (eg .dat, etc.) without either an absolute or relative path, or having the data file in your current working directory. 请注意,在path中添加文件夹不允许您访问没有绝对路径或相对路径或在当前工作目录中包含数据文件的 -MATLAB文件(例如.dat等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM