1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Unit step

  1. Sep 26, 2007 #1
    How do you represent a unit step in matlab as ONE function, y , for example. I know only how to graph multiple vectors on top of the same graph (using hold on/off) and getting the graph output, but i can't represent it as a function itself.

    Any ideas?
  2. jcsd
  3. Sep 27, 2007 #2
    If I understood your question correctly, you can do

    y = (t>=0)

    *Note : You have to predefine the vector t.

    for the unit step function y = u(t)

    Or use heaviside function.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Unit step