changeset 336:f36d172e196b feature/beams

Added missing string method.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 21 Oct 2016 12:27:18 +0200
parents 2d48db7151cf
children e070ebd94d9d
files +sbp/D2Variable.m
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 2d48db7151cf -r f36d172e196b +sbp/D2Variable.m
--- a/+sbp/D2Variable.m	Fri Oct 21 11:31:06 2016 +0200
+++ b/+sbp/D2Variable.m	Fri Oct 21 12:27:18 2016 +0200
@@ -18,7 +18,7 @@
 
     methods
         function obj = D2Variable(m,lim,order)
-            
+
             x_l = lim{1};
             x_r = lim{2};
             L = x_r-x_l;
@@ -39,8 +39,13 @@
             obj.M = [];
 
         end
+
+        function str = string(obj)
+            str = [class(obj) '_' num2str(obj.order)];
+        end
     end
 
+
 end