Welcome! Log In Create A New Profile

Advanced

'-file' editable

Posted by bts 
bts
'-file' editable
August 06, 2020 12:54PM
Hi Jaewon,

Sorry for so many questions in a row these past couple days! Currently, when you use the '-file' editable type, by default it looks for MATLAB files only. I am using it to look for stimulus files, so after the dialog box opens, I have to use the dropdown menu to look for all file types, then select the image/movie/gif file. This is only a minor inconvenience, but I was wondering if the default behavior could be changed so that it looks for all file types?
Re: '-file' editable
August 06, 2020 01:25PM
I agree that this default behavior of uigetfile is not convenient. Modify run_trial.m like the following. I will update the packages later.
Line 764 of run_trial.m
From:  'callback',sprintf('p = uigetfile; ...
To:    'callback',sprintf('p = uigetfile(''*.*''); ...
bts
Re: '-file' editable
August 06, 2020 01:29PM
Works great, thank you!

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.