Re: Step function





"Gigi" <g_plesoianu@xxxxxxxxxxx> wrote in message
news:ef16b3f.-1@xxxxxxxxxxxxxxxxxxx
> Hi, I'd like to plot a step function (Ex:y(x)=0 if x<0 and y(x)=1
> if x>=0). Can anybody help me?
>

In addition to suggestions given, you could try ezplot:

ezplot('Heaviside(x)',[0,10])

Nasser



.