MATLAB has a built-in predicate function, isdir, that takes as string as its argument, and returns true iff this argument represents the path to a directory.
I'm looking for a similar predicate, taking the same type of argument, but returning true iff this argument represents the path to a (Unix) symbolic link. (This returned value should be true for any symlink, irrespective of what type of file its target is, or whether this target exists at all.)
If MATLAB has no such predicate, then I'd like to know how best to implement it.