concatenate
Concatenate two or more labeled signal sets
Description
concatenates N labeled signal set objects,
lssnew
= concatenate(lss1,...,lssN
)lss1,...,lssN
, and returns a labeled signal set
lssnew
containing all the members and label values of the input
sets.
Examples
Concatenate Labeled Signal Sets
Load a labeled signal set containing recordings of whale songs.
load whales
lss
lss = labeledSignalSet with properties: Source: {2x1 cell} NumMembers: 2 TimeInformation: "sampleRate" SampleRate: 4000 Labels: [2x3 table] Description: "Characterize wave song regions" Use labelDefinitionsHierarchy to see a list of labels and sublabels. Use setLabelValue to add data to the set.
Create a new signal set with the same data source, time information, and labels as lss
.
newlss = copy(lss)
newlss = labeledSignalSet with properties: Source: {2x1 cell} NumMembers: 2 TimeInformation: "sampleRate" SampleRate: 4000 Labels: [2x3 table] Description: "Characterize wave song regions" Use labelDefinitionsHierarchy to see a list of labels and sublabels. Use setLabelValue to add data to the set.
Concatenate the two signal sets.
lssconcat = concatenate(lss,newlss)
lssconcat = labeledSignalSet with properties: Source: {4x1 cell} NumMembers: 4 TimeInformation: "sampleRate" SampleRate: 4000 Labels: [4x3 table] Description: "Characterize wave song regions" Use labelDefinitionsHierarchy to see a list of labels and sublabels. Use setLabelValue to add data to the set.
Input Arguments
lss1,...,lssN
— Input labeled signal sets
labeledSignalSet
objects
Input labeled signal sets, specified as labeledSignalSet
objects.
All input sets must have the same time information settings, label definitions, and data
source type.
Output Arguments
lssnew
— Concatenated labeled signal set
labeledSignalSet
object
Concatenated labeled signal set, returned as a labeledSignalSet
object. The set lssnew
contains a signal source, label definitions,
and label values that are independent of those in the input labeled signal sets.
Changing any of the input labeled signal sets does not affect the concatenated labeled
signal set. Changing the concatenated labeled signal set does not affect the input label
signal sets.
Version History
Introduced in R2018b
See Also
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)