octave-3.2.4:1> x=[-1:0.1:5]octave-3.2.4:2> function y=f(x)> y=exp(-x)> endoctave-3.2.4:3> for i=1:length(x)> y(i)=f(x(i));> endoctave-3.2.4:4> plot(x, y)