Extract the middle part of a vector
function midVector input Real x[:] = {1, 2, 3, 4, 5, 6} "Original vector"; input Integer n = 3 "Number of the vector elements to be extracted"; output Real y[:] "The result vector"; end midVector;