How do i remove a path with sub folder similar to how we add folder with all sub folder? Matlab takes very long to initialize.
55 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rajkumaran Malarvannan
il 7 Giu 2018
I am trying to run matlab and I recently added a lot of paths for my work. As of now Matlab takes too long to initialize. I am trying to remove all the paths and we have add path with subfolder but not an option to remove path with subfolders. Is there any way I can remove it? I have tried rmdir, rmpath (C:\..) but nothing seems to remove subfolder paths. Thank you for your time.
Regards Raj
0 Commenti
Risposta accettata
Image Analyst
il 7 Giu 2018
Try genpath
rmpath(genpath(topLevelFolder));
2 Commenti
OCDER
il 7 Giu 2018
And just in case there are subdir not in the matlab path, which generates warning messages, suppress warnings:
warning('off','all');
rmpath(genpath(topLevelFolder));
warning('on','all');
Image Analyst
il 7 Giu 2018
Or more specifically
warning('off', 'MATLAB:rmpath:DirNotFound');
Più risposte (2)
Jan
il 9 Feb 2023
Go to Home --> Set Path --> Remove folders in the window or press default as suggested by Kishan.

0 Commenti
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!