Mercurial > repos > public > sbplib
comparison Cell.m @ 472:1dcac646c514 feature/sublassable_cellarray
Add some missing semicolon
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 09:34:26 +0200 |
parents | 365fcdbb8736 |
children | 605a8c075388 |
comparison
equal
deleted
inserted
replaced
471:c78249d8e915 | 472:1dcac646c514 |
---|---|
4 end | 4 end |
5 methods | 5 methods |
6 function obj = Cell(data) | 6 function obj = Cell(data) |
7 if ~iscell(data) | 7 if ~iscell(data) |
8 class(data) | 8 class(data) |
9 error('Input argument to Cell must be a cell array') | 9 error('Input argument to Cell must be a cell array'); |
10 end | 10 end |
11 | 11 |
12 obj.data = data; | 12 obj.data = data; |
13 end | 13 end |
14 | 14 |
40 case '{}' | 40 case '{}' |
41 B = subsref(A.data, S); | 41 B = subsref(A.data, S); |
42 case '.' | 42 case '.' |
43 B = builtin('subsref',A, S); | 43 B = builtin('subsref',A, S); |
44 otherwise | 44 otherwise |
45 error('impossible') | 45 error('unreachable'); |
46 end | 46 end |
47 end | 47 end |
48 | 48 |
49 function C = horzcat(varargin) | 49 function C = horzcat(varargin) |
50 dataArray = cell(1, length(varargin)); | 50 dataArray = cell(1, length(varargin)); |