comp.soft-sys.matlab
[Top] [All Lists]

Re: Step function

Subject: Re: Step function
From: "Nasser Abbasi"
Date: Fri, 30 Sep 2005 17:08:49 GMT
Newsgroups: comp.soft-sys.matlab
 

"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 




<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy