How to use stepfun function

14 ビュー (過去 30 日間)
Junhui Han
Junhui Han 2018 年 10 月 6 日
回答済み: Jeong Min Shin 2018 年 10 月 7 日
<<
>> I want to make this graph. time between -4 to 6. My code is t= -4:0.01:6 y1=stepfun(t,0)-2*stepfun(t-1,0)+stepfun(t-2,0); y2=stepfun(t,0)-stepfun(t-1,0);
is this right?
and i want to figure out this function
plot(y1); plot(y2);
is this right grammer?
I can't make this well... need help

回答 (1 件)

Jeong Min Shin
Jeong Min Shin 2018 年 10 月 7 日
You have to put ";" behind of your t= -4:0.01:6.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by