%simple test function 
function [y] = f(x)
y=x.^3 - x.^2 + 3*x -2;
