How to save multiple figures generated from a single script?

조회 수: 11 (최근 30일)
jenny
jenny 2023년 7월 13일
댓글: jenny 2023년 7월 13일
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

답변 (1개)

Divyajyoti Nayak
Divyajyoti Nayak 2023년 7월 13일
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
jenny
jenny 2023년 7월 13일
Hello,
Yea I have workspace data. But my requirement is to get the figures

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by