Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
schoffelen committed Dec 15, 2023
1 parent 90d4301 commit 3d56ed6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions matlab/fiff_write_complex.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ function fiff_write_complex(fid,kind,data)
if count ~= 1
error(me,'write failed');
end

% this is quite slow
%for k = 1:nel
% count = fwrite(fid,real(data(k)),'single');
% if count ~= 1
% error(me,'write failed');
% end
% count = fwrite(fid,imag(data(k)),'single');
% if count ~= 1
% error(me,'write failed');
% end
%end
data = reshape(single([real(data(:)) imag(data(:))]).', [], 1);
count = fwrite(fid, data, 'single');
if count ~= nel*2
Expand Down
11 changes: 0 additions & 11 deletions matlab/fiff_write_double_complex.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ function fiff_write_double_complex(fid,kind,data)
if count ~= 1
error(me,'write failed');
end
% this is quite slow
% for k = 1:nel
% count = fwrite(fid,real(data(k)),'double');
% if count ~= 1
% error(me,'write failed');
% end
% count = fwrite(fid,imag(data(k)),'double');
% if count ~= 1
% error(me,'write failed');
% end
% end
data = reshape([real(data(:)) imag(data(:))].', [], 1);
count = fwrite(fid, data, 'double');
if count ~= nel*2
Expand Down

0 comments on commit 3d56ed6

Please sign in to comment.