フィルターのクリア

Saving Simmechanics Picture to jpeg

2 ビュー (過去 30 日間)
Etienne
Etienne 2011 年 4 月 18 日
Hi there
I would like to save the visual display of a simmechanics figure to a jpeg. At the moment I can save it to avi but no other formats. Is it possible to export it to any other formats?
Regards
Etienne

回答 (1 件)

Jarrod Rivituso
Jarrod Rivituso 2011 年 4 月 18 日
The easiest way I could think to do this is to just take a screenshot of it. If you are on windows, you can
1. Select window and press Alt+PrintScreen
2. Open Paint (or some other image program) and copy the clipboard contents to a new image, then save it as a JPG.
If you need to automate the process you could probably do it by finding the handle to the SimMechanics visualization window and then printing it.
>> allFigs = findall(0,'Type','figure')
>> simMechFig = allFigs(2); %not sure how to determine which figure is the SimMechanics one
>> print(simMechFig,'-djpg','myFile.jpg')
I'd stick with the first approach, though.

カテゴリ

Help Center および File ExchangeApplications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by