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 CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by