MATLAB POLYSPACE 7 Guide d'installation Page 277

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 618
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 276
Search Path
If you are not sure of the function MATLAB is using, run which for a
specified function and M ATLAB returns the full path to the function.
Although the actual search path rules aremorecomplicatedbecauseofthe
restricted scope of private functions, subfunctions, object-oriented functions,
P-files, and MAT-files, this simplified perspective is accurate for the ordinary
M-files you usually work with. For more information, see “Determining Which
Function Is Called” in the MATLAB Programming documentation.
How MATLAB Finds the Search Path, pathdef.m
Thesearchpathisstoredinthefilepathdef.m, w hich by default, is located
in
matlabroot/toolbox/local. You can store it in the MATLAB startup
directory, and modify it for the current session or for all future sess ions.
When MATLAB starts, it looks for a
pathdef.m file in its startup directo r y. If
none is found, it uses
pathdef.m in matlabroot/toolbox/local. MATLAB
modifies the path based on any path statements in a
startup.m file. Durin g
a s ession, you can save changes to the path using the Set Path dialog b ox
or the
savepath function, and MATLAB uses the path you saved to for the
remainder of the session.
If MATLAB finds a
pathdef.m in the current directory, it uses that version
instead. To avoid problems, do no t maintain a
pathdef.m file in a directory
other than the MATLAB startup directory or
matlabroot/toolbox/local.
5-25
Vue de la page 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 617 618

Commentaires sur ces manuels

Pas de commentaire