Is there a way to programmatically "print" the window of the dsp.SpectrumAnalyzer to a JPG or PNG file?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Richard Keniuk
am 20 Mär. 2020
Kommentiert: Richard Keniuk
am 23 Mär. 2020
I have previously used the print function in a script to get a JPG or PNG file from a figure. Now I am running a script and presenting information on the dsp.SpectrumAnalyzer, and I'd like to get the window of the spectrum analyzer to a JPG or PNG file including the measurement data. Is there a programatic method to do this?
0 Kommentare
Akzeptierte Antwort
Devineni Aslesha
am 23 Mär. 2020
Bearbeitet: Devineni Aslesha
am 23 Mär. 2020
Use the below code to get the spectrum analyzer window to a JPG or PNG file including the measurement data programmatically.
scope = dsp.SpectrumAnalyzer;
scope.CursorMeasurements.Enable = true;
scope.ChannelMeasurements.Enable = true;
scope.PeakFinder.Enable = true;
scope.DistortionMeasurements.Enable = true;
scope(randn(5000,3));
specFigHdl = findall(0,'Type','figure','Tag','spcui_scope_framework');
print(specFigHdl, 'rSpecAnalyzer', '-djpeg');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!