% FCN returns a value from a simple function expression function y = fcn(x) y = x^2-2;