Mercurial > repos > public > sbplib
view axPos.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 | 8979d81515ac |
children |
line wrap: on
line source
function axPos(n,m) a = {}; aPos = []; for i = 1:n*m a{i} = subplot(n, m, i); aPos(i,:) = a{i}.Position; end dx = aPos(1,3); dy = aPos(1,4); x = unique(aPos(:,1)); y = unique(aPos(:,2)); fprintf('dx: %f\n', dx); fprintf('dy: %f\n', dy); fprintf(' x: '); fprintf('%f ', x); fprintf('\n'); fprintf(' y: '); fprintf('%f ', y); fprintf('\n'); end