Save Figure as JPEG or PNG from Vector Scope

11 vues (au cours des 30 derniers jours)
Shay
Shay le 3 Oct 2020
Commenté : Shay le 3 Oct 2020
Hello,
Is it possible to save the resultant waveform displayed using the Vector scope block as JPEG or PNG and if so, how (without using snipping tool)? As, this is usually achieveable using the scope block which allows to open property editor, edit graph properties and then save Figure as a variety of options.
  2 commentaires
Ameer Hamza
Ameer Hamza le 3 Oct 2020
Are you using an older version of MATLAB? The block was removed in R2018b: https://www.mathworks.com/matlabcentral/answers/450026-missing-vector-scope-block-in-simulink-matlab-2018b
Shay
Shay le 3 Oct 2020
Yes, I am using an older version of MATLAB. However, I found the solution through the link you had provided. The alternatives to the Vector Scope were the Time Scope, Spectrum Analyzer and Array Plot. I incorporated the Time Scope in place of the Vector Scope and achieved same otuput with the added benefit of editing garph properties and saving figure as desired format.
Thanks.

Connectez-vous pour commenter.

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 3 Oct 2020
Use: saveas()
See: https://www.mathworks.com/help/matlab/ref/saveas.html
  1 commentaire
Shay
Shay le 3 Oct 2020
Thank you for the answer. I found the solution by using Time Scope block rather than the Vector Scope block to edit the properties of my graph and its axes.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by