yes... that is right; I want all the columns except 1 and 4 in this case, but maybe in the next case I might not want all the columns except 3 and 5. then the notation A(:,[2,3,5:cols]) will no longer be useful.
Do you know can I make it generic so it will work for any combination?
and thanks for answering.
On 19/07/2010, at 07:25 p.m., James Sherman Jr. wrote: 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?
_______________________________________________ Help-octave mailing list address@hidden https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
|