This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Specific experiments from multiple-experiment data set


d1 = getexp(data,ExperimentNumber)
d1 = getexp(data,ExperimentName)


d1 = getexp(data,ExperimentNumber) retrieves specific experiments from multiple-experiment data set. data is an iddata object that contains several experiments. d1 is another iddata object containing the indicated experiment(s). ExperimentNumber is the experiment number as in d1 = getexp(data,3) or d1 = getexp(data,[4 2]).

d1 = getexp(data,ExperimentName) specifies the experiment name as in d1 = getexp(data,'Period1') or d1 = getexp(data,{'Day1','Day3'}).

See merge (iddata) and iddata for how to create multiple-experiment data objects.

You can also retrieve the experiments using a fourth subscript, as in d1 = data(:,:,:,ExperimentNumber). Type help iddata/subsref for details on this.

Introduced before R2006a

Was this topic helpful?