I have a question about the following code.
[name file] = uigetfile('*', 'Select an image');
if [name file] ~= 0
%file found
end
Is there a way of saying that [name file] can be assigned to an array? For example, Filepath[2] = ui.getfile.. (this doesn't work).
When I tried the following code, I only get the filename and not the path. Am I declaring this array wrong?
Filepath{2} = uigetfile({'*.wav;*.mp3;*.aac;*.ogg'}, 'Select a file');
%Filepath{2} = uigetfile('*', 'Select an image');
%noFile = Filepath(0);
%if Filepath[1]~= 0
%if Filepath ~= 0
disp('Loading signal');
disp(Filepath);
%disp(Filepath{0});
disp('Filepath{1}');
disp(Filepath{1});
disp('Filepath{2}');
disp(Filepath{2});