Extracting Data from Scope saved as figure, FIG file
조회 수: 233 (최근 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에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!