wextend - one dimensional signal extension
This function extends the input vector. The half of extension length should be provided. And the two parts of the extension would be put on the head and tail of the original vector. There are 8 methods to use. For details, please refer to SWT user guide.
The input vector could be either row vector or column vector but the output is row vector always. For matrix extending, please refer to wextend2.
-->a=[1 2 3 4 5]'; -->b=wextend(a,2,'symh') ans = 2 1 1 2 3 4 5 5 4 -->b=wextend(a,2,'symw') ans = 3 2 1 2 3 4 5 4 3 -->b=wextend(a,2,'sp0') ans = 1 1 1 2 3 4 5 5 5 -->b=wextend(a,2,'sp1') ans = -1 0 1 2 3 4 5 6 7 -->b=wextend(a,2,'zpd') ans = 0 0 1 2 3 4 5 0 0 -->b=wextend(a,2,'ppd') ans = 4 5 1 2 3 4 5 1 2 -->b=wextend(a,2,'asymh') ans = -2 -1 1 2 3 4 5 -5 -4 -->b=wextend(a,2,'asymw') ans = -3 -2 1 2 3 4 5 -4 -3