MATLAB POLYSPACE 7 Guía de instalación Pagina 277

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 618
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 617 618

Comentarios a estos manuales

Sin comentarios