matlab.automation.diagnostics.Diagnostic.join
Class: matlab.automation.diagnostics.Diagnostic
Namespace: matlab.automation.diagnostics
Combine multiple diagnostics
Description
combines multiple pieces of diagnostic information into an array of
diagnostics
= matlab.automation.diagnostics.Diagnostic.join(value1,...,valueN
)matlab.automation.diagnostics.Diagnostic
objects.
Input Arguments
Output Arguments
Examples
Tips
The
join
static method lets you combine values of any data type into aDiagnostic
array. For example, ifd1
,d2
, andd3
are arbitrary values, you can executematlab.automation.diagnostics.Diagnostic.join(d1,d2,d3)
to create aDiagnostic
array. If at least one of the values is amatlab.automation.diagnostics.Diagnostic
object, then you can combine the values using array concatenation instead. In this example, becaused3
is aDiagnostic
object, the testing framework convertsd1
andd2
to diagnostics as well.import matlab.unittest.TestCase import matlab.automation.diagnostics.DisplayDiagnostic testCase = TestCase.forInteractiveUse; d1 = "Some Text"; d2 = @dir; d3 = DisplayDiagnostic(datetime); testCase.verifyFail([d1 d2 d3])
Version History
Introduced in R2013a