採用された回答

Jan
Jan 2012 年 2 月 8 日

1 投票

[EDITED]: You can capture the full screen by using the handle 0:
img = screencapture(0, 'Position', [0 0 1270 1023]);

4 件のコメント

Prashant Somani
Prashant Somani 2012 年 2 月 10 日
Thanks for sharing this solution. What i could understood that this tool captures Matlab windows, where else i want to capture current screen, which may include any running program. Please correct me if i have misunderstood this.
Kindly help me to get this
Jan
Jan 2012 年 2 月 11 日
See [EDITED].
Ashutosh
Ashutosh 2020 年 3 月 24 日
Even with the edited code, I am still having the problem of capturing the Matlab window.
Is there any other way around it?
Tom Bell
Tom Bell 2020 年 6 月 12 日
Hi Ashutosh,
I just fixed this issue when using a Mac. You have to go to System Preferences -> Security & Prvacy -> Privacy and allow Matlab to record the contents of your screen.
Hope this helps!

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

その他の回答 (1 件)

Prashant Somani
Prashant Somani 2012 年 2 月 13 日

0 投票

Thank you sooooooooooooo much...

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

タグ

質問済み:

2012 年 2 月 8 日

コメント済み:

2020 年 6 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by