Skip to content

Commit

Permalink
Update store2hdf5.m
Browse files Browse the repository at this point in the history
Fixed a bug in two assertions (the condition input argument must be a scalar logical)
  • Loading branch information
lalelale committed Oct 13, 2015
1 parent 0151742 commit ec94055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/hdf5creation/store2hdf5.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
info=h5info(filename);
prev_dat_sz=info.Datasets(1).Dataspace.Size;
prev_lab_sz=info.Datasets(2).Dataspace.Size;
assert(prev_dat_sz(1:end-1)==dat_dims(1:end-1), 'Data dimensions must match existing dimensions in dataset');
assert(prev_lab_sz(1:end-1)==lab_dims(1:end-1), 'Label dimensions must match existing dimensions in dataset');
assert(all(prev_dat_sz(1:end-1)==dat_dims(1:end-1)), 'Data dimensions must match existing dimensions in dataset');
assert(all(prev_lab_sz(1:end-1)==lab_dims(1:end-1)), 'Label dimensions must match existing dimensions in dataset');
startloc.dat=[ones(1,length(dat_dims)-1), prev_dat_sz(end)+1];
startloc.lab=[ones(1,length(lab_dims)-1), prev_lab_sz(end)+1];
end
Expand Down

0 comments on commit ec94055

Please sign in to comment.