I use constellation diagram block in MATLAB Simulink, but there is no option to save the diagram results as a figure or print it. Is there any idea to save the constellation diagram as a figure or PDF file?
Dear Abdulazai M. Ghaleb, in MATLAb simulink 2013b there is no option to save as figure or print in the constellation diagram block. Maybe it available in the previous version but I need MATLAB 2013 to simulate my model.
Dear RK Sethi, thank you very much for your attention, but there is no option or any shortcut key in this block to print or save as figure. I look for an idea that I can save the results on the data file and re plot them using MATLAB command or a block that can help me to save this result. The quality of using print screen is not enough for analysis the results.
First assume that your simulation is entitled example.slx, then follow these steps:
In your simulation right-click on your scope, the 'Scope' properties window appears
Under the Data history tab, activate the Save data to workspace checkbox
Enter the Variable name sc, for example
Choose the Format Array and click OK
In the command window do the following
sim('example')
figure(1)
constellation(sc)
And you have your constellation plot.
The method applies for any kind of figures. If, for example, the scope contains two curves, then you can obtain the figure in he command window by entering: