I am writing a Matlab code and want to have access to it from different desktops so I am keeping everything in dropbox. I'm wondering if there is a way to tell Matlab the current path without changing the code every time I use a different machine. For example the following line is in my code, but I'd like to make it more general for use on every computer. How can I tell MATLAB the correct path to my file?
[num,txt,raw]= xlsread('C:\Users\Zahra\Documents\dropbox \data.xlsx');