Monday, April 8, 2013

Octave, graphs and signals


sig1= [2 1 2 1 1 2 1 1 1 2 1 1 2 1 2 1]
a=length(sig1)
stem(sig1, '*')
axis([0 a 0 3])
grid on

Playing with octave again. Paste the code ointo octave and it will produce a graph showing the points.


- wong chee tat :)