Skip to content

Commit

Permalink
eeg_load_xdf.m: A couple warning fixups.
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed May 2, 2018
1 parent 13f50ef commit 4e02de7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Matlab/eeg_load_xdf.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
if isfield(chn,'type')
chanlocs(c).type = chn.type; end
try
chanlocs(c).X = str2num(chn.location.X)/1000;
chanlocs(c).Y = str2num(chn.location.Y)/1000;
chanlocs(c).Z = str2num(chn.location.Z)/1000;
chanlocs(c).X = str2double(chn.location.X)/1000;
chanlocs(c).Y = str2double(chn.location.Y)/1000;
chanlocs(c).Z = str2double(chn.location.Z)/1000;
[chanlocs(c).sph_theta,chanlocs(c).sph_phi,chanlocs(c).sph_radius] = cart2sph(chanlocs(c).X,chanlocs(c).Y,chanlocs(c).Z);
[chanlocs(c).theta,chanlocs(c).radius] = cart2pol(chanlocs(c).X,chanlocs(c).Y);
catch
Expand Down Expand Up @@ -120,7 +120,7 @@
end
[~, s_events(e).latency] = min(abs(stream.time_stamps - streams{s}.time_stamps(e)));
end
event = [event, s_events];
event = [event, s_events]; %#ok<AGROW>
catch err
disp(['Could not interpret event stream named "' streams{s}.info.name '": ' err.message]);
end
Expand Down

0 comments on commit 4e02de7

Please sign in to comment.