📄 fdcdir.htm
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="fdchelp.css">
<title>
FDC help: FDCDIR utility
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#DDDDDD"><div>
<h2>The directory-specification utility <i>FDCDIR</i>
</h2>
<p><i>FDCDIR</i> is a utility that builds pathnames for subdirectories of the FDC toolbox. It is called by several other programs from the toolbox to determine file-locations.</p>
<p>Due to the fact that the FDC root-directory will be different on different systems, referencing FDC subdirectories can be difficult. To facilitate this, the function <i>FDCDIR</i> was constructed. Calling this function for a user-specified FDC subdirectory will result in a complete path to this directory, that is: the subdirectory will be enhanced with the root-directory of the FDC toolbox.</p>
<p>If the resulting pathname does not exist, a warning message will be displayed. There are two possible causes for this condition to occur:</p>
<ol>
<li>the specified FDC subdirectory or the currently used root-directory is invalid,</li>
<li>the specified root or subdirectory can't be found because it has been deleted or moved to another location. The location of the FDC root-directory will be obtained from the file <code>fdc.ini</code>. If that file can't be found, FDCDIR will try the default FDC root-location <code>MATLABROOT\toolbox\fdc14</code>.</li>
</ol>
</p>
<h3>Usage</h3>
<p><code>D = fdcdir</code> returns the root-directory of the FDC toolbox and stores it in the string-variable <i>D</i>.</p>
<p><code>D = fdcdir(NAME)</code> returns the complete path of the FDC subdirectory specified in the string-variable <i>NAME</i> to the string variable <i>D</i>.</p>
<p><code>D = fdcdir(NAME1,NAME2)</code> returns the complete path of the FDC sub-subdirectory specified in the string-variable <i>NAME2</i>, which itself is contained in the FDC subdirectory specified in the string-variable <i>NAME2</i> (see the example below).</p>
<p>More input arguments are allowed (but not very practical), as long as the inputs are all string variables.</p>
<h3>Examples</h3>
<p>Suppose we call <i>FDCDIR</i> with the following command:<br><br> <code>D = fdcdir('MODELS')</code><br><br>and <code>C:\MATLAB\TOOLBOX\FDC14</code> is specified as root-directory in the file <code>fdc.ini</code>. This yields:<br><br><code>D = 'C:\MATLAB\TOOLBOX\FDC14\MODELS'</code>.</p>
<p>Using this same root-directory, the command:<br><br><code>D = fdcdir('MODELS','AIRCRAFT')</code><br><br>will yield:<br><br><code>D = 'C:\MATLAB\TOOLBOX\FDC20\MODELS\AIRCRAFT'</code>.</p>
<b>Note:</b> even though Windows notation has been used for the pathnames in the examples and information above, the program itself makes use of generic path and file-separators.
</p>
<h3>Related utilities</h3>
<p>The macro's <a href="datadir.htm"><i>DATADIR</i></a> and <a href="helpdir.htm"><i>HELPDIR</i></a> make use of this function to specify the FDC data-directory and the location of the on-line helpfiles, respectively.</p>
</div></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -