www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimstore/getNumRowsInDataset.m
function num_rows = getNumRowsInDataset(optimstore, datasetName) %GETNUMROWSINDATASET Return the number of rows in a data set % % NPTS = GETNUMROWSINDATASET(OPTIMSTORE, DATASETNAME) returns the number % of rows in the data set labelled DATASETNAME. % % See also CGOPTIMSTORE/GETDATASET % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin < 2 error(message('mbc:cgoptimstore:InvalidArgument7')); end helperDatasetNames = pGetHelperDatasetLabels(optimstore); if ~ismember(datasetName, helperDatasetNames) error(message('mbc:cgoptimstore:InvalidArgument8', datasetName)); end % Get helper data set size num_rows = getDatasetLength(optimstore.OptimRunner, datasetName);