How to save multiple figures generated from a single script?

Hello,
I'm running a batch of testcases, Each testcase generates 3 scopes from simulation. I could able to save one scope as a 'figure' in a folder. But I have 3 scopes for each testcase. How to save 3 scopes for each testcase for running all testcases at once (in a batch)?
Thank you in advance
Hope I explained clearly

Antworten (1)

Divyajyoti Nayak
Divyajyoti Nayak am 13 Jul. 2023

0 Stimmen

Instead of saving figures from the scope, you could save the data from the scope into matlab workspace and then plot it into different figures. You can use the save data workspace option in the scope block.
Here's a stackoverflow question that might help: Save Simulink Scope Data to figure through matlab code - Stack Overflow

1 Kommentar

Hello,
Yea I have workspace data. But my requirement is to get the figures

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 13 Jul. 2023

Kommentiert:

am 13 Jul. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by