Extracting Data from Scope saved as figure, FIG file
35 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-10-31
回答: MathWorks Support Team
2019-4-25
How do I extract X,Y data from a Simulink scope I have saved as a figure, FIG file?
采纳的回答
MathWorks Support Team
2019-4-26
1) Open the scope window from with your Simulink model.
2) Select File > Print to Figure. A Figure window will appear.
3) Select File > Save As> Save as a figure, FIG file.
4) Enter the following from the MATLAB Command Window or script
4.a)Open the figure, 'scope_figure', using the function 'openfig':
>> fig = openfig('scope_figure');
4.b) Next open the current axes:
>>ax = fig.CurrentAxes
4.c) Access the Current Axes Children:
>> g_array = ax.Children
4.d) This yields a graphics array containing your data. Access the data by:
>> x1 = g_array(1).XData
>> x1 = g_array(1).YData
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!