existFS

Check if file exists and puts answer in a cached persistent variable

Syntax

Description

The answer (true/number) is cached for better performance. In order words, the first time existFS is called the answer is stored in persistent variable named cachedexistFS

example

result =existFS(FileName) Test whether mex file DfM.XXXX exists.

Examples

expand all

  • Test whether mex file DfM.XXXX exists.
  • Depending on the operating system a different mex file will be searched.

    out=existFS('DfM');
    if out == true
    disp('Mex file exists');
    else
    disp('Mex file does not exist');
    end

    Input Arguments

    expand all

    FileName — FileName whose existence has to be verified. double.

    Example - 'myFile.mex'

    Data Types: char

    Output Arguments

    expand all

    result —True or false. Boolean

    result is true if file exists in the MATLAB path.

    References

    This page has been automatically generated by our routine publishFS