time | Calls | line |
---|
| | 269 | function t = initInternals(t, vars, nrows, rowLabels, nvars, varnames)
|
| | 270 | % INITINTERNALS Fills an empty tabular object with data and dimension objects. This
|
| | 271 | % function is for internal use only and will change in a future release. Do not use
|
| | 272 | % this function.
|
< 0.001 | 8 | 273 | try
|
0.008 | 8 | 274 | t.rowDim = t.rowDim.createLike(nrows,rowLabels);
|
0.026 | 8 | 275 | t.varDim = t.varDim.createLike(nvars,varnames); % error if invalid, duplicate, or empty
|
0.001 | 8 | 276 | t.data(1,1:nvars) = vars; % force 1xN, and hard error if vars is the wrong length
|
| | 277 | catch ME
|
| | 278 | throwAsCaller(ME)
|
< 0.001 | 8 | 279 | end
|
< 0.001 | 8 | 280 | end
|
Other subfunctions in this file are not included in this listing.