Unit step function explanation

조회 수: 13 (최근 30일)
Smit Patel
Smit Patel 2019년 11월 30일
답변: Star Strider 2019년 11월 30일
function u = u(t)
u=double(t>=0);
end
Question: Why is this the function for unit step? and what does double mean? I know that it gives the unit step function of constant 1 after 0 but I don't know why. Can anyone please help?
Thanks

채택된 답변

Jim Riggs
Jim Riggs 2019년 11월 30일
편집: Jim Riggs 2019년 11월 30일
Double is simply the data type , i.e. double precision.
(T>=0) is a logical 0 or 1.
double converts the answer to double precision.

추가 답변 (1개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by