|
From: | Carlo de Falco |
Subject: | Re: Matrix resizing |
Date: | Sat, 6 Mar 2010 19:25:37 +0100 |
On 6 Mar 2010, at 17:18, Martin Helm wrote:
Am Samstag, 6. März 2010 16:31:45 schrieb Marius Roets:Hi,Is there a vectorized way to delete every other row/column in a matrix?Similarly to duplicate every other row/column? Thanks MariusSomething like that? a = rand(10); b = a(1:2:rows(a), :)
or, to avoid the copy: a(1:2:end,:)=[]; c.
[Prev in Thread] | Current Thread | [Next in Thread] |