[Top][All Lists]

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

Re: Excluding elements of a matrix

From: Jordi Gutierrez Hermoso
Subject: Re: Excluding elements of a matrix
Date: Tue, 19 Dec 2006 12:13:40 -0500

On 19/12/06, Joseph Wakeling <address@hidden> wrote:
Is there a convenient notation for excluding elements of a vector or matrix?

It's unwieldy, but you can copy your matrix to a new one, remove the
elements you don't want to see, and then display that matrix instead:

    B = A;
    B(6) = [];  #Remove 6th element from B.

- Jordi G. H.

reply via email to

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