Skip to content
Snippets Groups Projects
Commit cf059c31 authored by Andrew King's avatar Andrew King Committed by Nicola Vigano
Browse files

Fixed a bug in edf_write

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@141 4c865b51-4357-4376-afb4-474e03ccb993
parent dc6c5abc
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,17 @@ function edf_write(data, filename, varargin)
% It still needs to be fixed, because it doesn't write all the header fields
if nargin == 3
edfinfo = varargin{1};
if isstruct(varargin{1})
edfinfo=varargin{1};
else
edfinfo.datatype=varargin{1};
end
else
edfinfo = []
end
if ~exist('edfinfo','var') || ~isfield(edfinfo,'datatype')
%disp('Datatype being determined from the variable')
% sets datatype from type of data in matlab
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment