Skip to content

Instantly share code, notes, and snippets.

@yichao0319
Created November 10, 2014 21:33
Show Gist options
  • Save yichao0319/1eb537d3ec93383f7623 to your computer and use it in GitHub Desktop.
Save yichao0319/1eb537d3ec93383f7623 to your computer and use it in GitHub Desktop.
matlab:opt
%% get_dtw_opt: function description
function [arg1, arg2] = get_XX_opt(opt)
arg1 = 1;
arg2 = 2;
if nargin < 1, return; end
opts = regexp(opt, ',', 'split');
for this_opt = opts
eval([char(this_opt) ';']);
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment