joindata
Description
joindata
is a function used in code generated by Diagnostic Feature
Designer.
merges two tables using an outer join with the first two columns as the primary keys to
merge. In general, an outer join combines table rows where the key variables have matching
values, while also retaining rows where key variables from one input table have no matches
in the other input table (see table12
= joindata(table1
,table2
)outerjoin
). joindata
joins two frame tables. The first two columns of both frame tables contain the segment start
and segment end points. The other columns in the tables contain data associated with the
frame. The data column names must be unique, that is, data columns in
table2
must not have the same name as the data columns in
table1
.
Code that is generated by Diagnostic Feature
Designer uses joindata
when performing frame-based ensemble
statistics processing. In the code, table1
contains existing frame data
and table2
contains newly computed frame results.
uses the columns with the names specified in table12
= joindata(table1
,table2
,'Keys',keys
)keys
as the primary keys
for the merge. For example, 'Keys',["TimeStart","TimeEnd"]
specifies that
joindata
use the columns named TimeStart
and
TimeEnd
rather than automatically using the first two columns for
primary keys.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020a