Simulink Signal Builder Custom signal help

65 ビュー (過去 30 日間)
William
William 2016 年 4 月 4 日
コメント済み: nalin bandara 2021 年 9 月 23 日
Greetings, I'm trying to use signal builder to create a custom signal that is just a string of time and value data points but I cannot figure out the format of the "Custom Signal" It has a "Time Values" and a "Y Values" input. I've tried [0 1 2 3] for time and the [0 1 -5 5] along with a host of other syntax and it keeps getting rejected. Can someone give me an example of how to say at time 0 Y=0, at time 1 Y=1, at time 2 Y= -5, and finally at time 3 Y =5
Thanks

回答 (1 件)

Stefan Raab
Stefan Raab 2016 年 4 月 20 日
Hello,
Time Values: [0 1 1 2 2 3 3]
Y Values: [0 0 1 1 -5 -5 5]
Hope this helps.
Kind regards, Stefan
  2 件のコメント
Ianis Unterhuber
Ianis Unterhuber 2021 年 4 月 6 日
Thanks - it's just sloppy that the Matlab help system still doesn't give an example of this essential feature. Also missing is the option to simply repeat a signal inverted (e.g.: positive pulse followed by negative pulse), or to repeat a sequence multiple times.
nalin bandara
nalin bandara 2021 年 9 月 23 日
Thanks Stefan..... saved me a lot of time.... thanks again.

サインインしてコメントする。

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by