time | Calls | line |
---|
| | 445 | function b = cloneAsEmpty(a) %#ok<MANU>
|
| | 446 | %CLONEASEMPTY Create a new empty table from an existing one.
|
| | 447 | % if strcmp(class(a),'table') %#ok<STISA>
|
1.648 | 70595 | 448 | b = table();
|
| | 449 | % else % b is a subclass of table
|
| | 450 | % b = a; % respect the subclass
|
| | 451 | % % leave b.metaDim alone
|
| | 452 | % b.rowDim = b.rowDim.shortenTo(0);
|
| | 453 | % b.varDim = b.varDim.shortenTo(0);
|
| | 454 | % b.data = cell(1,0);
|
| | 455 | % leave b.arrayProps alone
|
| | 456 | % end
|
0.009 | 70595 | 457 | end
|
Other subfunctions in this file are not included in this listing.