On Mon, Jul 19, 2010 at 6:09 PM, Victor Carreto Pavon
<address@hidden> wrote:
thanks for the comment I certanly did not knew that A(:,[1 4 6]) will return columns 1, 4 and 6... but let's say that what I am looking for are the remaining columns from the original matrix A there fore what I want are columns 2, 3, 5...
I don't think I'm getting exactly what you're looking for. Do you want all the columns except 1 and 4? This can be done a couple ways, the most straight forward probably being:
cols = size(A, 2);
A(:, [2, 3, 5:cols])
Is this what you are asking?