You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using load button in toolbar on GUI, unable to select .dat file from documents. They all appear light grey and cannot be clicked on, including the .dat files included in initial download file. Can someone please advise as to how to get around this and be able to open .dat files for analysis?
The text was updated successfully, but these errors were encountered:
There is a workaround; the problem is that, in the current version of MATLAB, most Mac OS cannot properly interpret the "uigetfile" command when it is combined with filetype restriction options. If you're sure that you only want to select .dat files, you can make a basic fix by changing the file called load_data.m. Instead of line 4 consisting of a long uigetfile command, delete lines 4-10 (until you get to the closing parenthesis on the uigetfile command) and just use uigetfile('*.*','multiselect', 'on');, then follow it with a line of ftype = 2; This will allow you to select .dat files and have the rest of the code interpret them as such.
It's kind of an inelegant solution, but I hope it works for you.
@tangerine2010 I should also clarify: what I referred to as "line 4" is really a continuation of line 3. Here's what the beginning of the code should look like for the first few lines:
function load_data(self, files, ftype)
if nargin < 2
[fname, fpath, ftype] = ...
uigetfile('*.*','multiselect', 'on');
ftype = 2; %2 to load dat files, 3 to load smd files
if (ftype == 0)
return
end
if iscell(fname)
matlab vR2020a
when using load button in toolbar on GUI, unable to select .dat file from documents. They all appear light grey and cannot be clicked on, including the .dat files included in initial download file. Can someone please advise as to how to get around this and be able to open .dat files for analysis?
The text was updated successfully, but these errors were encountered: