[Top][All Lists]

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

Re: Excluding elements of a matrix

From: Bill Denney
Subject: Re: Excluding elements of a matrix
Date: Tue, 19 Dec 2006 11:49:16 -0500
User-agent: Thunderbird (Windows/20061025)

Joseph Wakeling wrote:
Is there a convenient notation for excluding elements of a vector or matrix?


I want to show a matrix, except for column 13.

or, I want to sum over all elements of a vector except elements [2 5 9].
You can do something like

a = 1:10;
b = a([1:5 7:10])


reply via email to

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