Mercurial > repos > public > sbplib
changeset 483:025f084187d1 feature/sublassable_cellarray
Add some documentation and minor clean up
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 14:49:56 +0200 |
parents | b90f8108ea5f |
children | da7df0c9af05 |
files | Cell.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Cell.m Wed Aug 02 12:27:25 2017 +0200 +++ b/Cell.m Wed Aug 02 14:49:56 2017 +0200 @@ -1,11 +1,14 @@ +% Cell is a reimplementation of matlabs cell array with the benefit that it is subclassable +% It might be used for giving a typename to a cellarray to increase readability of the code. classdef Cell properties data end + methods function obj = Cell(data) + default_arg('data', {}); if ~iscell(data) - class(data) error('Input argument to Cell must be a cell array'); end