[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matrix resizing
From: |
Martin Helm |
Subject: |
Re: Matrix resizing |
Date: |
Sat, 6 Mar 2010 17:18:18 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.31.12-0.1-desktop; KDE/4.3.5; x86_64; ; ) |
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
> Marius
>
Something like that?
a = rand(10);
b = a(1:2:rows(a), :)
- Matrix resizing, Marius Roets, 2010/03/06
- Re: Matrix resizing,
Martin Helm <=