Rearranging a vector in matlab?

Let's say your vector x has n elements. And you want to update the i-th segment and divide it into k parts. Then: x = x(1:i-1), x(i):((x(i+1) - x(i))/k):x(i+1), x(i+2:n).

One way to do this is: x = 0:0.25:1; xrefined3 = x(1):0.25/3:x(2) x(2:end-1) x(end-1):0.25/3:1; xrefined5 = x(1):0.25/5:x(2) x(2:end-1) x(end-1):0.25/5:1.

I'm having trouble understanding how to do a perfect shuffle of a vector. I'm supposed to split the vector in half then the 1st element is the 1st element in the first half and the 2nd element is the 1st element of the 2nd half, and so on. Can someone at least help me with the pseudo-code?

I been thinking about this a few days with no luck.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions