How do i create a simplified version of a continuous time unit step function?

15 ビュー (過去 30 日間)
Christina Williams
Christina Williams 2017 年 12 月 3 日
編集済み: Nick Choi 2017 年 12 月 6 日
For a class we have to create a simplified version of a continuos time unit step function as well as a pulse signal and a ramp signal this is what i have so far
%%Continuous Time Step Function
function p=crwstep(t) % random name
p=unitstep(t);
end
For my pulse signal I have to use the step signal and this is what i have, which i think is correct(once i get the step signal down, %% Pulse Function
function p=crwpulse(t,m,n)
p=crwstep(t-n)-unitstep(t-m);
end
What am i doing wrong??

回答 (1 件)

Nick Choi
Nick Choi 2017 年 12 月 6 日
編集済み: Nick Choi 2017 年 12 月 6 日
The following example shows how to create a variety of signals such as the unit impulse, unit step and unit ramp signals:

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by