Mercurial > repos > public > sbplib
view matlabFunctionSizePreserving.m @ 664:8e6dfd22fc59 feature/poroelastic
Free BC now yields symmetric negative semidefinite discretization.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 15 Dec 2017 16:23:10 -0800 |
parents | 489bea7fc33f |
children |
line wrap: on
line source
% Takes a symfun and makes a better anonymous function function fun = matlabFunctionSizePreserving(f) mf = matlabFunction(f); args = argnames(f); funStr = func2str(mf); for i = 1:length(args) funStr = [funStr sprintf(' + 0*%s', toString(args(i)))]; end fun = str2func(funStr); end