How would you make a rectangle input?

3 ビュー (過去 30 日間)
Matthew Pollard
Matthew Pollard 2022 年 6 月 14 日
回答済み: Sam Chak 2022 年 6 月 14 日
The idea is like a step input but that, after a specified time, the input changes to a different value e.g., step input of 1 then 5 seconds later the input changes to 5
  1 件のコメント
KSSV
KSSV 2022 年 6 月 14 日
What have you tried?

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

回答 (1 件)

Sam Chak
Sam Chak 2022 年 6 月 14 日
Ah... That is not strictly a rectangular signal, but is more like a staircase signal, which can be a little trick when there are ascending staircase and descending staircase. But you can test it out yourself:
syms x
fplot(1*heaviside(x) + 1*heaviside(x - 5), [-2, 10])

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by