relativepath.m

Convert path representations.

現在この提出コンテンツをフォロー中です。

RELATIVEPATH returns the relative path from an actual path to the target path.

Both arguments must be strings with absolute paths. The actual path is optional, if omitted the current dir is used instead. In case the volume drive letters don't match, an absolute path will be returned.

If a relative path is returned, it always starts with '.\' or '..\'

Syntax:
rel_path = RELATIVEPATH( target_path, actual_path )

引用

Jochen Lenz (2026). relativepath.m (https://jp.mathworks.com/matlabcentral/fileexchange/3858-relativepath-m), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Fast and efficient spectral clustering, Improved relativepath.m

カテゴリ

Help Center および MATLAB AnswersFilename Construction についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0