To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
If I had two vectors x1 and x2. How could I make vector x3 with all the elements of x2 except the first 3 elements and last 3 elements are from x1?
No products are associated with this question.
Is this what you wanted?
x1=1:10 x2=11:20 y=[x2(3:length(x2)) x1(1:length(x1-3))]
If same size:
x1(4:end-2) = x2(4:end-2);
[x1(1:3); x2(4:end-2); x1(end-2:end)]