Use point data to plot a signal to use in Simulink

3 ビュー (過去 30 日間)
Tingshen Yang
Tingshen Yang 2020 年 4 月 15 日
回答済み: Ayush Gupta 2020 年 6 月 3 日
Hi,
The attached file is a plotting of earthquake wave drawn with many points. Is there a way that I change this into a signal (like sine wave/signal generator) to be used in Simulink?
Thanks for help in advance.
Sam

回答 (1 件)

Ayush Gupta
Ayush Gupta 2020 年 6 月 3 日
The following procedure might help you:
  1. In the MATLAB command prompt run your script and then open Simulink.
  2. Create a blank model and add a Signal Builder block.
  3. Double click the Signal Builder block.
  4. Select Signal > New > Custom.
  5. In the Custom Waveform window, enter t in the Time values field and y in the Y values field and then click OK.
The Signal Builder block window displays the new signal as Signal 2.

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by