Mercurial > repos > public > sbplib
comparison TextTable.m @ 894:f30eafd6d4dc
Add new formatting method to TextTable
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 22 Nov 2018 07:29:30 +0100 |
parents | 11a39b274260 |
children |
comparison
equal
deleted
inserted
replaced
893:7ea4b6de59d9 | 894:f30eafd6d4dc |
---|---|
37 obj.fmtArray(:,:) = {fmt}; | 37 obj.fmtArray(:,:) = {fmt}; |
38 end | 38 end |
39 | 39 |
40 function formatCell(obj, i, j, fmt) | 40 function formatCell(obj, i, j, fmt) |
41 obj.fmtArray{i,j} = fmt; | 41 obj.fmtArray{i,j} = fmt; |
42 end | |
43 | |
44 function formatGrid(obj, I, J, fmt) | |
45 for i = I | |
46 for j = J | |
47 obj.fmtArray{i,j} = fmt; | |
48 end | |
49 end | |
42 end | 50 end |
43 | 51 |
44 function formatRow(obj, i, fmt) | 52 function formatRow(obj, i, fmt) |
45 obj.fmtArray(i,:) = {fmt}; | 53 obj.fmtArray(i,:) = {fmt}; |
46 end | 54 end |