How do i add with subfolders to my pathway?

45 views (last 30 days)
Hsiu
Hsiu on 19 Jun 2014
Edited: ES on 19 Jun 2014
Hello! I want to add a folder of functions, which has other folders inside into a pathway of mine. I tried to copy and paste that big folder in, but that does not work. I was suggested to "add with subfolders". Can someone explain how that actually works? Thanks!

Accepted Answer

ES
ES on 19 Jun 2014
Edited: ES on 19 Jun 2014
addpath(genpath(FolderName));
will add all subfolders under FolderName to MATLAB's Path.
or
manually as shown in the attachm
ent

More Answers (0)

Community Treasure Hunt

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

Start Hunting!