help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: column elimination


From: James Sherman Jr.
Subject: Re: column elimination
Date: Mon, 19 Jul 2010 18:25:28 -0400

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]