Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Figure プロットを実際にプロットせずに保存する方法はありますか? のグラフを保存したいのですが、グラフをplot(1:10, (1:10).^2)表示せずに保存できますか?
plot(1:10, (1:10).^2)
不要な図のプロットを切り捨てて、実行時間を短縮したいと考えています (これらは保存後に閉じられます)。
ありがとう!
これを行うことができます:
set(gcf,'Visible','off'); plot((1:10),(1:10).^2); print -dpng c:\chris.png % or whatever your print command is
saveas(h,'filename.ext')一部のフォーマットでフィギュアを保存できる機能もあります。
saveas(h,'filename.ext')