Skip to content

Instantly share code, notes, and snippets.

@jgillis
Last active July 13, 2016 11:26
Show Gist options
  • Save jgillis/4f273083cc9da9832fee to your computer and use it in GitHub Desktop.
Save jgillis/4f273083cc9da9832fee to your computer and use it in GitHub Desktop.
casadi2matlabfun =@(F,castfun) @(varargin) subsref(cellfun(castfun,F(varargin),'UniformOutput',false),struct('type','{}','subs',{{':'}}));
Hf = casadi2matlabfun(H,@full)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment