PO_matlab
|
Extracts elements from both ends of a vector. More...
Functions | |
function | sideslice (in v, in k) |
Extracts elements from both ends of a vector.
Returns a new vector composed of the first floor(k/2) elements and the last (k - floor(k/2)) elements from the input vector v. Useful for symmetric slicing from the edges.
v | Input vector |
k | Total number of elements to extract (must be <= length(v)) |
s | Vector containing the concatenated slices from both ends |
function sideslice | ( | in | v, |
in | k ) |