From: Faraz Afzal on
"shahnaz fatima" <shahnaz1981fat(a)gmail.com> wrote in message <i0q834$svi$1(a)fred.mathworks.com>...
> can u tell me what does A(2:2:end) = [] mean?
> how can i ask help for that in matlab.

Dear Shahnaz You will not be able to find out help on this...
INstead you can try---- > doc colon

The explanation of it is as follows :

A = [ 0 3 1 4 2 6 4 ...]

I want to remove the alternate elements from it such that it becomes:

A = [ 0 1 2 4 ...]
Solution was
A(2:2:end) = []

Means out of this A matrix Give me elements Starting from 2 element and with increment of every second element..

A(2:2:end) from 2nd element to the end with increment of 2nd element..

Regards,
Muhammad Faraz