Referencing from another vector
- From: "charles benziger" <cbenzinger@xxxxxxxxxx>
- Date: Sat, 29 Apr 2006 13:52:57 -0400
Hi,
I have a 1x13 vector
a = (1 1 2 2 2 3 3 1 3 1 4 4 1)'
and
b = rand(1,13).
How can I create matrix c, which only shows elements of b, where the
corresponding element of a ==1?
Thank you!
.
- Follow-Ups:
- Re: Referencing from another vector
- From: Ken Davis
- Re: Referencing from another vector
- Prev by Date: How do I optimize the code to make it faster?
- Next by Date: Re: GUI & Image Processing
- Previous by thread: How do I optimize the code to make it faster?
- Next by thread: Re: Referencing from another vector
- Index(es):