Using Signal Logging for Test Harness to Matlab Workspace
Show older comments
I am using a simple script to run a test case via a test harness within Matlab
%% Clear Workspace
clc
close all
clear
%% Run Test Cas(es)
out = runtests(Name='my test case');
logsouttest = out.logsout;
This errors on line 9

The 'runtests' command does not export like the 'sim' command. But I can't use the 'sim' command since I am using a test harness and need to utilize the 'runtests' command.
I know there has to be a way to get the 'logsout' data, I just cannot figure out the syntax.
Overall goal is to get the logged signal data in the test harness into the Matlab workspace

Answers (1)
doc matlab.unittest.TestResult
help matlab.unittest.TestResult
Categories
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!