ffpath - find file path

The function finds full directory name from matlabpath or system path for the file name

Vous suivez désormais cette soumission

The function browses very fast current directory and directories known in 'matlabpath' and the system variable 'path'. It searches for the file, name of which is in the input argument 'fname'. If a directory is found, the output argument pth is filled by a path to the file name from 'fname', otherwise pth is set empty. File names should have their extensions, but MATLAB m-files.

Arguments:
fname = file name
pth = path to the fname

Examples:
pth = ffpath('gswin32c.exe')
% c:\Program Files\gs\gs8.60\bin\
pth = ffpath('hgrc')
% C:\PROGRA~1\MATLAB\R2006b\toolbox\local

Citation pour cette source

Miroslav Balda (2026). ffpath - find file path (https://fr.mathworks.com/matlabcentral/fileexchange/22501-ffpath-find-file-path), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur Filename Construction dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.1.0.0

A test on presence of a file name as intut argument complemented.

1.0.0.0