Function Reference
— Built-in Function: [result, err, msg] = readlink (symlink)

Read the value of the symbolic link symlink.

If successful, result contains the contents of the symbolic link symlink, err is 0 and msg is an empty string. Otherwise, err is nonzero and msg contains a system-dependent error message.

See also: link symlink