Are there any functions/blocks to print the spectrum of spectrum Analyser to file or just output its data to file automatically in simulink
11 views (last 30 days)
Show older comments
I do find there is a manual way that FIle->Print to Figure or Print Preview. But I got hundreds of cases to do, and up to 8 spectrums in one case. If I do them manually, my life will become miserable. I am wondering if there are some functions or blocks that can do it automatically.
Many Thanks
0 Comments
Answers (1)
Kiran Felix Robert
on 8 Oct 2020
Hi Geng
The Obtain measurements Data Programmatically for spectrum Analyser Block document shows you an example for storing the data from the spectrum analyser (Measurements) to MATLAB Workspace.
Refer to the getSpectrumData function to see the other data which can be collected from the spectrum analyser. This also includes the Trace Data, which you can save for future use.
You can plot the data and save to figure from a MATLAB Script.
Kiran Felix Robert
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!