フィルターのクリア

Need help to compare output of a simuink model

29 ビュー (過去 30 日間)
Steven
Steven 2024 年 8 月 19 日 6:39
コメント済み: Steven 2024 年 8 月 19 日 6:49
Hello Everyone I am working on a project where I have to compare the output signals of my simulink model, after making some changes in a model. Is there a way I can keep both the result and do some analysis. Currently I am taking screenshot of output and then comparing the result but this is very tedious.Is there any other way. I am new to using Simulink so any help is appreciated. Thanks in advance

採用された回答

Anurag Ojha
Anurag Ojha 2024 年 8 月 19 日 6:45
Hey Steven
In order to compare the results you can use compare tab in the "Data inspector". It helps you compare two different runs.
In your Simulink window click on the 'Data Inspector' button. Added an image below for your reference:
Now in this go to the compare tab
  • Import both the runs you want to compare.
  • Select the signals you want to compare
  • Click on the compare button.
I have added a GIF for the complete workflow. I hope this helps:
Refer to the following MATLAB Documentation for more infromation:
  1 件のコメント
Steven
Steven 2024 年 8 月 19 日 6:49
Thanks, This is helpful

サインインしてコメントする。

その他の回答 (1 件)

Shubham
Shubham 2024 年 8 月 19 日 6:43
Hi Steven,
Comparing output signals in Simulink can be done more efficiently than taking screenshots. Here are some methods you can use to compare and analyze the results of your simulations:
  1. Simulink Data Inspector: Simulink provides a built-in tool called the Simulation Data Inspector (SDI) that allows you to visualize and compare simulation data.
  2. Signal Logging: Enable logging for desired signals. After simulation, use SDI to view and compare the logged data effectively.
  3. Export Data to Workspace: Use "To Workspace" blocks to export simulation outputs. Analyze and compare data using MATLAB scripts for detailed insights and plotting.
  4. MATLAB Scripts for Analysis: Automate the comparison process by writing scripts to run simulations, collect data, and visualize differences, enhancing efficiency and accuracy.
  5. Automate with Scripts: Create scripts to run both simulations, extract output data, and perform automatic comparisons, reducing manual effort and errors.
These methods streamline the process of analyzing and comparing Simulink simulation results.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by