Create a MATLAB Unit Test Suite to Test a Simulink Model

1 Ansicht (letzte 30 Tage)
Trevor Fry
Trevor Fry am 19 Jun. 2017
Beantwortet: Andy Campbell am 19 Jun. 2017
Mathworks Documentation has an example of how to use Matlab Unit test to test Simulink Models: Test Models Using MATLAB Unit Test
However, the line: apsuite = testsuite('AutopilotTestFile.mldatx'); will not run (using my test file). Is creating a test suite from a mldatx file only supported in a certain version of Matlab? I am using 2016a.

Akzeptierte Antwort

Andy Campbell
Andy Campbell am 19 Jun. 2017
Hi Trevor,
This was a feature introduced in R2016b. Here is the corresponding release note.
Hope that helps! Andy

Weitere Antworten (0)

Kategorien

Mehr zu Test Scripts finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by