realpath

Absolute pathname.

您现在正在关注此提交

Resolves relative paths and extra filesep characters in the input.

Syntax:
OUTPUT = REALPATH(THEPATH)

where THEPATH is the path to a file or folder, which should exist.

Example:
realpath('../myfile.txt');
% returns /home/user/whatever/myfile.txt

引用格式

M MA (2026). realpath (https://ww2.mathworks.cn/matlabcentral/fileexchange/8680-realpath), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: realpath

类别

Help CenterMATLAB Answers 中查找有关 Filename Construction 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0