Load a file from a different folder
5 views (last 30 days)
I am having difficulty loading a file from a different folder. The data is currently stored in a network server. I currently have a workaround by bringing the file of interest ot my matlab specific folder and using this code.
cfg = ;
[FileName] = uipickfile('.mff');
cfg.dataset = FileName;
data = ft_preprocessing(cfg);
Is there anyway to load my file of interest without having to drag it to the matlab folder. I will be working with about 1250 files and would like to save the storage on my device?
Titus Edelhofer on 25 Jan 2021
I don't know where uipickfile comes from. If you use uigetfile, you would have a second output argument you can use:
[filename,pathname] = uigetfile('*.mff');
cfg.dataset = fullfile(pathname,filename);