Plot two vectors or arrays sing simulink and XY graph

11 visualizaciones (últimos 30 días)
HayderMU
HayderMU el 5 de Nov. de 2021
Respondida: Jaynik el 6 de Nov. de 2024 a las 11:27
I looked everywhere before asking this question.
Let's say we have two arrays x = [1 2 3 4 5 6 7 8] and y = [1 2 3 4 5 6 7 8]. I want to plot these two using XY graph in simulink. I know they have to be in single column each. Then what? (The XY graph is replaced with Record in matlab 2021. I don't need recordbecause I'm using an old version). Every example contains a time related function or a signal generator. What if the source is my own numbers?
thanks in advance

Respuestas (1)

Jaynik
Jaynik el 6 de Nov. de 2024 a las 11:27
Upon searching the documentation, I was able to find this for MATLAB R2019b release: https://www.mathworks.com/help/releases/R2019b/simulink/ug/visualize-simulation-data-on-an-xy-plot.html
You can refer this documentation to read more about plotting XY graph with the help of Simulink Data Inspector. The source can be given as Constant blocks and the signal coming from them can be used to plot the XY graph.
Hope this helps!

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by