Skip to Main Content Skip to Search
Product Documentation

getDataset - Retrieve data from data set

Syntax

V = getDataset(optimstore, datasetName, inputNames)

Description

Returns required data from a named data set. A method of cgoptimstore.

PTS = getDataset(optimstore, datasetName) returns all the data from the specified helper data set. If the data set cannot be found, data is returned as empty.

PTS = getDataset(optimstore, datasetName, inputNames) returns data from the specified helper data set. Data is retrieved for the columns of the data set with names that match those in inputNames. If the dataset cannot be found, data is returned as empty.

Examples

V = getdataset(optimstore, 'myDS', {'speed', 'afr'})

returns a NPTS by 2 matrix, V.

NPTS is the number of rows in the operating point set labeled 'myDS', V(:, 1) is the data for the variable labeled 'speed', V(:, 2) is the data for the variable labeled 'afr'.

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS