f



plot 1, -1, 1, -1, -1

Hi,

How to plot those numbers in a rectangle style?

thanks
0
5/12/2009 10:07:56 PM
comp.soft-sys.matlab 211266 articles. 24 followers. lunamoonmoon (257) is leader. Post Follow

2 Replies
2050 Views

Similar Articles

[PageSpeed] 26

x = linspace(-4*pi,4*pi,1000); y = sin(x);
plot(x,sign(y)), axis([-12 12 -2 2])
0
Shaun
5/12/2009 10:47:02 PM
PZ <patrick.zou@gmail.com> wrote in message <d64c545f-f2ac-4f87-af89-051bda896707@x6g2000vbg.googlegroups.com>...
> Hi,
> 
> How to plot those numbers in a rectangle style?
> 
> thanks

help stairs

stairs([-1 1 -1 1 -1 1])

hth
Jos
0
10584 (930)
5/13/2009 7:21:01 AM
Reply: