Effacer les filtres
Effacer les filtres

extract points from a table and plot them on Simulink

1 vue (au cours des 30 derniers jours)
Hamda Zarrouk
Hamda Zarrouk le 8 Fév 2023
Commenté : Hamda Zarrouk le 9 Fév 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

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 8 Fév 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.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by