matlab prefdir函数语法

发表matlab prefdir函数相关文章
一句话说明: Folder containing preferences, history, and layout files

prefdir

Folder containing preferences, history, and layout files

Syntax

prefdir
folder = prefdir
folder = prefdir(1)

Description

prefdir returns the folder that contains

  • Preferences for MATLAB® and related products (matlab.prf)

  • Command history file (history.m)

  • MATLAB shortcuts (shortcuts_2.xml)

  • MATLAB desktop layout files (MATLABDesktop.xml and Your_Saved_LayoutMATLABLayout.xml)

  • Other related files

folder = prefdir assigns to folder the name of the folder containing preferences and related files.

folder = prefdir(1) creates a folder for preferences and related files if one does not exist. If the folder does exist, the name is assigned to folder.

Examples

View the location of the preferences folder:

prefdir
 

Make the preferences folder become the current folder:

cd(prefdir)

% Then, view the files for customizing MathWorks® products:
dir
 

On Windows® platforms, go directly to the preferences folder in Microsoft® Windows Explorer

winopen(prefdir)

More About

Tips

  • You must have write access to the preferences folder. Otherwise, MATLAB generates an error in the Command Window when you try to change preferences. This can happen if the folder is hidden, for example: myname/.matlab/R2009a.

See Also

| |

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/prefdir

与matlab prefdir用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1