How to use octave to generate png images of equations

Tue 31 July 2007
    octave
    a=0:0.1:5
    plot(a,kernelGauss(a,2))
    xlabel(’r')
    ylabel(’W(r)’)
    title(’Gaussian Smoothing Kernel - h=2′)
    print(’kernel.png’,'-dpng’)