Mercurial > repos > public > sbplib
view dealStruct.m @ 888:8732d6bd9890 feature/timesteppers
Add general Runge-Kutta class
- Add a general Runge-Kutta class which time integrates the solution based on coefficients obtained from a Butcher tableau
- Add butcher tableau which returns coefficents for the specified Runge-Kutta method
- Remove RungKutta4proper, since obsolete
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 15 Nov 2018 17:10:01 -0800 |
parents | 95993ad2bd70 |
children | b7ec26da3d77 |
line wrap: on
line source
function varargout = dealStruct(s, fields) default_arg('fields', fieldnames(s)); assert(nargout == length(fields), 'Number of output arguements must match the number of fields'); for i = 1:length(fields) varargout{i} = s.(fields{i}); end end