two output in one scope

6 次查看(过去 30 天)
How can I have scope output from one .mdl file with another .mdl file in the same window (for Compare)?
Like the figure below

采纳的回答

Paul
Paul 2024-1-6
The easiest way is to log each signal in their respective .mdl file, simulate each, and then plot from the base workspace.

更多回答(1 个)

madhan ravi
madhan ravi 2024-1-6
编辑:madhan ravi 2024-1-6
Using 2 Model Blocks reference one .mdl file and and the other .mdl file (if the model block doesn"t support .mdl format, convert it to .slx) and connect the outputs of each model blocks to one Scope block by this way you can compare both the signals.
See an illustration with a simple example below:
Here Reference1 and Reference2 are model files saved in the path

类别

Help CenterFile Exchange 中查找有关 Interactive Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by