How to access data shown in data inspector?

6 views (last 30 days)
Mark
Mark on 19 Jan 2024
Edited: Arun on 16 Feb 2024
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 Comment
Benjamin Thompson
Benjamin Thompson on 20 Jan 2024
Can you attach an example plot along with what output you are tring to get from the plot?

Sign in to comment.

Answers (1)

Arun
Arun on 16 Feb 2024
Edited: Arun on 16 Feb 2024
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.

Categories

Find more on View and Analyze Simulation Results in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!