Help in construct pulse on Signal Builder

 採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 17 日

0 投票

Start with a Square signal and then you can drag and drop any part of the signal lines to make whatever you want.

4 件のコメント

Doug Eastman
Doug Eastman 2011 年 10 月 17 日
There are some keyboard shortcuts that will be useful to know if you want to manually modify the waveform. See: http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/ug/f15-109640.html#f15-109779.
You could also choose the 'Custom...' option and enter time and Y vectors, such as [0 1.5 1.5 2.5 2.5 5.2 5.2 6.2 6.2 8] for time and [0 0 1 1 0 0 1 1 0 0]
Fangjun Jiang
Fangjun Jiang 2011 年 10 月 17 日
@Doug, Thank you for sharing the link. That's quite useful. I've tried "Custom..." before and found it impossible to make a straight rising or falling edge.
Doug Eastman
Doug Eastman 2011 年 10 月 20 日
The trick there is to repeat a value in the time vector like I mentioned above. If your time is [0 1 1 2] and your value is [0 0 1 1] that will create a rising edge at 1 second.
Fangjun Jiang
Fangjun Jiang 2011 年 10 月 20 日
That is weird but good! I thought I tried before but it was telling me that the time stamp needs to be strictly incremental. Thanks, Doug!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by