time | Calls | line |
---|
| | 395 | function t = init(vars, numRows, rowNames, numVars, varNames, dimNames)
|
| | 396 | % This function is for internal use only and will change in a future release.
|
| | 397 | % Do not use this function.
|
| | 398 |
|
< 0.001 | 8 | 399 | try %#ok<ALIGN>
|
| | 400 |
|
| | 401 | % INIT creates a table from data and metadata. It bypasses the input parsing
|
| | 402 | % done by the constructor, but still checks the metadata.
|
0.005 | 8 | 403 | t = table();
|
0.038 | 8 | 404 | t = t.initInternals(vars, numRows, rowNames, numVars, varNames);
|
< 0.001 | 8 | 405 | if nargin == 6
|
| | 406 | t.metaDim = t.metaDim.setLabels(dimNames);
|
< 0.001 | 8 | 407 | end
|
< 0.001 | 8 | 408 | if numVars > 0
|
0.020 | 8 | 409 | t.metaDim = t.metaDim.checkAgainstVarLabels(t.varDim.labels);
|
< 0.001 | 8 | 410 | end
|
| | 411 |
|
| | 412 | catch ME, throwAsCaller(ME); end
|
< 0.001 | 8 | 413 | end
|
Other subfunctions in this file are not included in this listing.