read a directory path starting from a subfolder
1 回表示 (過去 30 日間)
古いコメントを表示
Is there a way I can read a directory path starting from a subfolder:
folder = 'W:\Códigos\Matlab\Lee Frame\New\Images\Deformations'
I know it's possible to do something like that is Fortran (Ansys APDL):
folder = '..\Lee Frame\New\Images\Deformations'
My '.m' file is in the folder 'W:\Códigos\Matlab\Lee Frame\New'. I need that because I'm using different computers.
0 件のコメント
採用された回答
AXL
2018 年 2 月 22 日
1 件のコメント
Walter Roberson
2018 年 2 月 22 日
dirname = fullfile(pwd, 'Imagens', 'Deformações');
saveas(FigHandle, fullfile(dirname, file) )
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!