Extended linspace function handling also the N=1 case
function linspaceExt input Real x1; input Real x2; input Integer N; output Real vec[N]; end linspaceExt;