Include sub-folders automatically in script

19 visualizaciones (últimos 30 días)
Dilip Rao
Dilip Rao el 30 de Ag. de 2012
Hello, I would like to know if there is a command by which I can include subfolders in my working path? ex: I have a folder structure which looks like x(main folder)-- a, b, c and d (sub-folders).Everytime I have to incluse all these folders I have to write [workpath, filesep, 'x'];... [workpath, filesep, 'x', filesep, 'a'];... and so on. All I need now is to reduce these extra lines and have just one line which will include all paths. Thank you.

Respuesta aceptada

Robert Cumming
Robert Cumming el 30 de Ag. de 2012
I'm not 100% sure what your after - but have you seen
help genpath
e.g.
addpath ( genpath ( pwd ) )

Más respuestas (0)

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by