I have my function files in a different directory as -
C:\lab\Abhilash\Analysis Tools\Third Party
The first folder contains my spike_trains.m function file which calls all other functions within it. In that spike_trains.m file, which is also a function-m file, I give an argument 'directory' which specifies the data directory, wherever it may be and then I do 'addpath(directory)' to add that path.
But I need to have a line which gets the current directory of the function-m files and then adds its path.
When I ask for 'pwd', it only gives me C:\lab\ and not the entire path as I wrote previously.
Could someone please help me out?