Can I copy a figure during runing ?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to copy a figure during running the code But I stopped the running temporary and I want to copy the figure ,, so can I do that ?
댓글 수: 2
채택된 답변
Walter Roberson
2022년 8월 25일
Yes you can copy a figure during execution. functions such as exportgraphics() or savefig() or copyobj() can be called.
As usual if you saving as an image, drawnow() first.
Also if you are in the middle of configuring graphic objects, you may need to make them visible in order for proper sizing and layout to be done.
댓글 수: 5
Image Analyst
2022년 8월 25일
I don't believe that saves a screenshot. If you want a screenshot saved to an image file on disk you should use saveas or export_fig.
Walter Roberson
2022년 8월 26일
"Copy Figure" to clipboard can be coded as
hgexport(gcf, '-clipboard')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!