get the name of mat file loaded by command "uiopen" ?
19 views (last 30 days)
let say i got more than 5 mat files in my current directory and i am using " uiopen " to select one of them.
i also need to get the name of the loaded mat file. ('abde.mat' or the one whic is selected )
is there any way to get the name of loaded mat file with out saving it with a different name or etc.
thanks for help
Joseph Cheng on 13 Jun 2014
How are you selecting them? GUI, hard coded, determined by set of parameters, etc? because since you're using uiopen you are putting a string into the function which you could have set that into a variable before.
%%you've hard coded
%%could have been implemented as
So it all depend on how you're selecting the files. if it is user input you can store the selected one when they choose but how to implement depends on how you let the user select the file.