Effacer les filtres
Effacer les filtres

How to plot two signals in Simulink

7 vues (au cours des 30 derniers jours)
Álvaro Salcedo
Álvaro Salcedo le 4 Déc 2017
Modifié(e) : Yukthi S le 22 Avr 2024
Hello to all,
I would like to plot two signals at the same time in Simulink. The same behaviour that XY Graph but with twoi signals.
So I have two signals which in each step they have; X1 Y1, X2 Y2. So I would like to plot those two signals in the same graph when I run simulink.
Is it posible?
Thanks a lot

Réponses (1)

Yukthi S
Yukthi S le 19 Avr 2024
Modifié(e) : Yukthi S le 22 Avr 2024
Hi Alvaro
You can plot multiple signals within the same plot using “Simulation Data Inspector” available in Simulink. To achieve this:
  1. First you need to Identify and select the signals in your model that you want to analyze.
  2. Log those signals using “Log signals” in the tool strip.
  3. Run the model and open the data inspector.
The same process is clearly explained in the below documented example:

Catégories

En savoir plus sur Prepare Model Inputs and Outputs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by