Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix column deletion with know column indices
Date: Sat, 13 Jun 2009 06:19:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 15
Message-ID: <h0vgcl$9mc$1@fred.mathworks.com>
References: <h0veo5$rpk$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244873941 9932 172.30.248.37 (13 Jun 2009 06:19:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Jun 2009 06:19:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:547119


"Diego Lass" <dlISCool@gmail.com> wrote in message <h0veo5$rpk$1@fred.mathworks.com>...
> Hi
> I want to delete several columns in a matrix and get the resulting matrix, what is the fastest way to do this.  I saw some posts but didn't understand them. 
> 
> For example
> 1 2 3 4 5
> 6 7 8 9 10
> 
> I want to delete columns [1 3] and get
> 2 4 5 
> 7 9 10

A(:[1 3])  = []

% Bruno