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
joinstatic method lets you combine values of any data type into aDiagnosticarray. For example, ifd1,d2, andd3are arbitrary values, you can executematlab.automation.diagnostics.Diagnostic.join(d1,d2,d3)to create aDiagnosticarray. If at least one of the values is amatlab.automation.diagnostics.Diagnosticobject, then you can combine the values using array concatenation instead. In this example, becaused3is aDiagnosticobject, the testing framework convertsd1andd2to 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