Mercurial > repos > public > sbplib
comparison +util/get_grid.m @ 64:7067bf8adbfa
Fixed some typing and added function to plot eigen values of a matrix.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 18 Nov 2015 17:14:19 +0100 |
parents | 48b6fb693025 |
children |
comparison
equal
deleted
inserted
replaced
63:21b18edb9667 | 64:7067bf8adbfa |
---|---|
1 % [x,h] = get_grid(a,b,m) | |
1 function [x,h] = get_grid(a,b,m) | 2 function [x,h] = get_grid(a,b,m) |
2 % TODO: allow the interval to be a vector | 3 % TODO: allow the interval to be a vector |
3 x = linspace(a,b,m)'; | 4 x = linspace(a,b,m)'; |
4 h = (b-a)/(m-1); | 5 h = (b-a)/(m-1); |
5 end | 6 end |