I'm using simulink of Matlab R2012b. When I finish generating my model, I want to save the graphics obtained from it that are seen in the scope, but I can't find an easy way to do this. Does exist a way to save the graphics that I'm obtaining from the model that are seen in the scope?
Asked
Active
Viewed 661 times
0
-
Sorry, I didn't find it so I asked. – iam_agf Apr 28 '15 at 18:21
-
Don't worry, it is not a crime ;) – Robert Seifert Apr 28 '15 at 18:21
-
Well, yes, but I like that idea of not repeating questions, so I have to respect that :P – iam_agf Apr 28 '15 at 18:23
-
You could vote to close your own question as duplicate, then it gets into the review queue and gets handled fast. – Robert Seifert Apr 28 '15 at 18:39
1 Answers
0
The long way to do this is, before running the model, go to the terminal of matlab, and enter the next lines:
>>>shh = get(0,'ShowHiddenHandles');
>>>set(0,'ShowHiddenHandles','On')
>>>set(gcf,'PaperPositionMode','auto')
>>>set(gcf,'InvertHardcopy','off')
>>>saveas(gcf,'mypic.jpg')
>>>set(0,'ShowHiddenHandles',shh)
And the file will be saved in the current folder where you are working.
The other way is doing a screenshot, and then pasting it on a program like paint or inkscape.

iam_agf
- 639
- 2
- 9
- 20
-
You could also save the data to the workspace and then use standard MATLAB `plot` commands. It won't look like a Simulink scope, but like a MATLAB figure, but it will be the same data. – am304 Apr 28 '15 at 20:55