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!