Simulink test: redirect "disp" output to file

5 views (last 30 days)
In the model I'm simulating I have multiple calls to "disp" function which prints to the Diagnostic viewer.
When running tests using Simulink test in batch I couldn't find the diagnostic viewer output.
Is it possible to redirect the screen output to log file which I can review?

Answers (1)

Priyanka Kondapalli
Priyanka Kondapalli on 6 Jan 2022
Edited: Priyanka Kondapalli on 24 Mar 2022
I understand you are trying to output the logfile, for which you can use the diary function. Please use the link below on how to use the diary function.


Find more on Configure and View Diagnostics 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!