- `C = exist (NAME)`
- `C = exist (NAME, TYPE)`

Check whether `NAME` exists as a variable, function, file, directory, or class.

The optional `TYPE` argument restricts the kind of object to search for.

See also: `which`, `iskeyword`.

### References

- https://www.mathworks.com/help/matlab/ref/exist.html
- https://octave.sourceforge.io/octave/function/exist.html
