Save Figure as JPEG or PNG from Vector Scope

9 ビュー (過去 30 日間)
Shay
Shay 2020 年 10 月 3 日
コメント済み: Shay 2020 年 10 月 3 日
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 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 10 月 3 日
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 2020 年 10 月 3 日
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.

サインインしてコメントする。

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 10 月 3 日
Use: saveas()
See: https://www.mathworks.com/help/matlab/ref/saveas.html
  1 件のコメント
Shay
Shay 2020 年 10 月 3 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by