diff TextTable.m @ 968:a4ad90b37998 feature/poroelastic

Merge with default.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 23 Dec 2018 14:39:31 +0100
parents f30eafd6d4dc
children
line wrap: on
line diff
--- a/TextTable.m	Sun Dec 23 14:06:26 2018 +0100
+++ b/TextTable.m	Sun Dec 23 14:39:31 2018 +0100
@@ -41,6 +41,14 @@
             obj.fmtArray{i,j} = fmt;
         end
 
+        function formatGrid(obj, I, J, fmt)
+            for i = I
+                for j = J
+                    obj.fmtArray{i,j} = fmt;
+                end
+            end
+        end
+
         function formatRow(obj, i, fmt)
             obj.fmtArray(i,:) = {fmt};
         end