Navigation

Operators and Keywords

Function List:

C++ API

: what
: what dir
: w = what (dir)

List the Octave specific files in directory dir.

If dir is not specified then the current directory is used.

If a return argument is requested, the files found are returned in the structure w. The structure contains the following fields:

path

Full path to directory dir

m

Cell array of m-files

mat

Cell array of mat files

mex

Cell array of mex files

oct

Cell array of oct files

mdl

Cell array of mdl files

slx

Cell array of slx files

p

Cell array of p-files

classes

Cell array of class directories (@classname/)

packages

Cell array of package directories (+pkgname/)

Compatibility Note: Octave does not support mdl, slx, and p files; nor does it support package directories. what will always return an empty list for these categories.

See also: which, ls, exist.

Package: octave