필터 지우기
필터 지우기

How to access data shown in data inspector?

조회 수: 3 (최근 30일)
Mark
Mark 2024년 1월 19일
편집: Arun 2024년 2월 16일
I have a plot of units per second in data inspector from a Mathworks refererence model.
Is it possible to access the data in data inspector to perform computations? For example, with the data in units per second, I'd like to evaluate total units used.
  댓글 수: 1
Benjamin Thompson
Benjamin Thompson 2024년 1월 20일
Can you attach an example plot along with what output you are tring to get from the plot?

댓글을 달려면 로그인하십시오.

답변 (1개)

Arun
Arun 2024년 2월 16일
편집: Arun 2024년 2월 16일
Hi Mark,
I understand that you have a plot in data inspector from a Simulink reference model and want to access the data in that plot to perform computations such as with the data in units per seconds, evaluate the total units used.
Exporting the data from data inspector is one such way to access the data in data inspector. Here is a suggested flow that you can use to Export data from data inspector:
  1. Open the data inspector window.
  2. Click on the “Export icon on the left options bar.
  3. Export the data to the base workspace or a file using the “Export” window.
4. Once the data is in MATLAB workspace or a file, perform the required operations.
5. Here are snapshots that represent calculation related to sum of sin wave data, exported to MATLAB workspace as well as an Excel-file.
“export” function can also be used to export data form data inspector. For more information related to export of data from data inspector using “export” function with examples, please refer the MathWorks documentation link: https://www.mathworks.com/help/simulink/slref/simulink.sdi.signal.export.html
Hope this helps.

카테고리

Help CenterFile Exchange에서 Analyze Simulation Results에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by