Hi, I request you to please explain the meaning of this statement.

1 view (last 30 days)
>> addpath(fullfile(pwd, 'Myfolder'))

Accepted Answer

Sean de Wolski
Sean de Wolski on 9 Sep 2014
Break it into pieces!
>>pwd
What does this return?
>>fullfile(pwd,'MyFolder')
What happens now?
For something like addpath(), look it up in the doc:
>>doc addpath

More Answers (1)

the cyclist
the cyclist on 9 Sep 2014
It tells MATLAB to look in the subdirectory 'Myfolder' of the present directory, when it executes commands. Type
doc addpath
into the Command Window to see a more complete explanation.

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!