
extract points from a table and plot them on Simulink
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hamda Zarrouk
am 8 Feb. 2023
Kommentiert: Hamda Zarrouk
am 9 Feb. 2023
Hello,
I have a table on Matlab that contains 2 colums and 10 lines as such:
-1.78813934326172e-06 -9.09566879272461e-05
-1.96695327758789e-05 -8.01086425781250e-05
-1.08480453491211e-05 -6.29425048828125e-05
-3.69548797607422e-06 -4.94718551635742e-05
-1.19209289550781e-05 -3.25441360473633e-05
-2.61068344116211e-05 -1.37090682983398e-05
5.00679016113281e-06 -2.64644622802734e-05
1.27553939819336e-05 -5.72204589843750e-06
-1.43051147460938e-06 -4.05311584472656e-06
8.34465026855469e-07 1.43051147460938e-06
They represent y cordinates as a part of a sin wave. The sapce betwwen each one is (1/48000). I need to seperate the colums, import them to Simulink and plot them as two diffent graphs. How can i do that?
thanks
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 8 Feb. 2023
Let s=1/48000 and A be your matrix data above. Here are the two methods I mentioned in the answer to your previous question.
Specify the solver for the model, fixed step, discrete solver, step size be s, simulation stop time be 2e-4. Match the graph with the block name.

Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!