Skip to content

Commit

Permalink
if xcoords does not exist, use xc
Browse files Browse the repository at this point in the history
  • Loading branch information
marius10p committed Dec 11, 2016
1 parent 28a7348 commit 071b341
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions preprocessData.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@
rez.ops = ops;
rez.xc = xc;
rez.yc = yc;
rez.xcoords = xcoords;
rez.ycoords = ycoords;
if exist('xcoords')
rez.xcoords = xcoords;
rez.ycoords = ycoords;
else
rez.xcoords = xc;
rez.ycoords = yc;
end
rez.connected = connected;
rez.ops.chanMap = chanMap;
rez.ops.kcoords = kcoords;
Expand Down

0 comments on commit 071b341

Please sign in to comment.