Azzera filtri
Azzera filtri

How to access data shown in data inspector?

3 visualizzazioni (ultimi 30 giorni)
Mark
Mark il 19 Gen 2024
Modificato: Arun il 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 Commento
Benjamin Thompson
Benjamin Thompson il 20 Gen 2024
Can you attach an example plot along with what output you are tring to get from the plot?

Accedi per commentare.

Risposte (1)

Arun
Arun il 16 Feb 2024
Modificato: Arun il 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.

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by