From: Fraser Dickson on
Hi im trying to use the following command

[filename filepath] = uigetfile(previousfolder,'*.*');

where previous folder contains the directory i want to pick the file from.
The value in previous folder is correct but when the dialogyue box opens it directs me to the folder in which the m file im running resides

What am i doing wrong?
From: Jan on

Does 'previousfolder' contain the full path including the \ at the end?

Then try
[filename filepath] = uigetfile([previousfolder '*.*']);