read a directory path starting from a subfolder
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
AXL
el 22 de Feb. de 2018
Comentada: Walter Roberson
el 22 de Feb. de 2018
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 comentarios
Respuesta aceptada
AXL
el 22 de Feb. de 2018
1 comentario
Walter Roberson
el 22 de Feb. de 2018
dirname = fullfile(pwd, 'Imagens', 'Deformações');
saveas(FigHandle, fullfile(dirname, file) )
Más respuestas (0)
Ver también
Categorías
Más información sobre Search Path en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!