2012年4月6日 - x = -10 : 0.1 : 10; y = double(x == 0); plot(x, y);. or stem(x, y); ...
stackoverflow.com