function [minx,maxx]=func2(x);
%This function returns the minimum (minx) & maximum (maxx) of a given vector x
minx=min(x);
maxx=max(x);
