Main Content

concat

Class: Simulink.SimulationData.Dataset
Package: Simulink.SimulationData

Concatenate dataset to another dataset

Syntax

dataset1 = concat(dataset1,dataset2)

Description

dataset1 = concat(dataset1,dataset2) concatenates the elements of dataset2 to dataset1.

Input Arguments

expand all

Dataset to concatenate to with dataset2, returned as a cell array.

Data set to concatenate to dataset1, specified as a cell array.

Output Arguments

expand all

Concatenated dataset from dataset1 and dataset2.

Examples

expand all

Convert output from two To Workspace blocks to Dataset format and concatenate them.

mdl = 'myvdp';
open_system(mdl);
sim(mdl)
ds = Simulink.SimulationData.Dataset(simout);
ds1 = Simulink.SimulationData.Dataset(simout1);
dsfinal = concat(ds,ds1);
Introduced in R2015a