Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB function

  1. Mar 19, 2013 #1

    I want to plot this function on MATLAB:

    f(t)=1 si 0<=t<=1
    f(t)=0 otherwise

    Please help me! How to do it????
    I tried so much things it doesn't work!!!
  2. jcsd
  3. Mar 19, 2013 #2


    Staff: Mentor

    Look up the Heaviside function in the Matlab documentation.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook