Skip to content
Snippets Groups Projects
Commit 20e64aa8 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fix for empty and nan fields.

parent d5e873f0
Branches
Tags
No related merge requests found
......@@ -33,6 +33,17 @@ function options=set_default_option(options,field,default)
if ~isfield(options,field)
options.(field) = default;
return
end
if isempty(options.(field))
options.(field) = default;
return
end
if isnan(options.(field))
options.(field) = default;
return
end
% 06/07/03 MJ added ; to eval expression
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment