MATLAB Answers

Unit step function explanation

19 views (last 30 days)
Smit Patel
Smit Patel on 30 Nov 2019
Answered: Star Strider on 30 Nov 2019
function u = u(t)
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?

Accepted Answer

Jim Riggs
Jim Riggs on 30 Nov 2019
Edited: Jim Riggs on 30 Nov 2019
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.

More Answers (1)

Community Treasure Hunt

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

Start Hunting!