extract points from a table and plot them on Simulink

2 ビュー (過去 30 日間)
Hamda Zarrouk
Hamda Zarrouk 2023 年 2 月 8 日
コメント済み: Hamda Zarrouk 2023 年 2 月 9 日
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

採用された回答

Fangjun Jiang
Fangjun Jiang 2023 年 2 月 8 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by