Mercurial > repos > public > sbplib
comparison +sbp/D4Compatible.m @ 441:e1d11b6a68d8 feature/grids
Add string methods to OpSets that are missing them
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 13 Mar 2017 14:43:37 +0100 |
parents | 4b9310edcdf8 |
children |
comparison
equal
deleted
inserted
replaced
438:225765e345c4 | 441:e1d11b6a68d8 |
---|---|
26 | 26 |
27 | 27 |
28 | 28 |
29 methods | 29 methods |
30 function obj = D4Compatible(m,lim,order) | 30 function obj = D4Compatible(m,lim,order) |
31 | 31 |
32 | 32 |
33 x_l = lim{1}; | 33 x_l = lim{1}; |
34 x_r = lim{2}; | 34 x_r = lim{2}; |
35 L = x_r-x_l; | 35 L = x_r-x_l; |
36 obj.h = L/(m-1); | 36 obj.h = L/(m-1); |
37 obj.x = linspace(x_l,x_r,m)'; | 37 obj.x = linspace(x_l,x_r,m)'; |
66 obj.D2 = []; | 66 obj.D2 = []; |
67 obj.D3 = []; | 67 obj.D3 = []; |
68 | 68 |
69 | 69 |
70 end | 70 end |
71 | |
72 function str = string(obj) | |
73 str = [class(obj) '_' num2str(obj.order)]; | |
74 end | |
71 end | 75 end |
72 | 76 |
73 | 77 |
74 | 78 |
75 end | 79 end |