read a directory path starting from a subfolder
2 次查看(过去 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 中查找有关 File Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!