comparison +sbp/D2Variable.m @ 336:f36d172e196b feature/beams

Added missing string method.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 21 Oct 2016 12:27:18 +0200
parents 4b9310edcdf8
children 42c89b5eedc0
comparison
equal deleted inserted replaced
335:2d48db7151cf 336:f36d172e196b
16 borrowing % Struct with borrowing limits for different norm matrices 16 borrowing % Struct with borrowing limits for different norm matrices
17 end 17 end
18 18
19 methods 19 methods
20 function obj = D2Variable(m,lim,order) 20 function obj = D2Variable(m,lim,order)
21 21
22 x_l = lim{1}; 22 x_l = lim{1};
23 x_r = lim{2}; 23 x_r = lim{2};
24 L = x_r-x_l; 24 L = x_r-x_l;
25 obj.h = L/(m-1); 25 obj.h = L/(m-1);
26 obj.x = linspace(x_l,x_r,m)'; 26 obj.x = linspace(x_l,x_r,m)';
37 37
38 obj.m = m; 38 obj.m = m;
39 obj.M = []; 39 obj.M = [];
40 40
41 end 41 end
42
43 function str = string(obj)
44 str = [class(obj) '_' num2str(obj.order)];
45 end
42 end 46 end
47
43 48
44 end 49 end
45 50
46 51
47 52