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.
164 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Image Analyst
2018 年 6 月 7 日
Try genpath
rmpath(genpath(topLevelFolder));
2 件のコメント
OCDER
2018 年 6 月 7 日
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
2018 年 6 月 7 日
Or more specifically
warning('off', 'MATLAB:rmpath:DirNotFound');
その他の回答 (2 件)
Jan
2023 年 2 月 9 日
Go to Home --> Set Path --> Remove folders in the window or press default as suggested by Kishan.
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!