Re: Referencing from another vector
- From: "charles benzinger" <cbenzinger@xxxxxxxxxx>
- Date: Sat, 29 Apr 2006 19:05:54 -0400
I have a follow-up question:
suppose a = a = (1 1 2 2 2 3 3 1 3 1 4 4 1)'
and b= rand(13,2).
How can I create matrix c that show elements in b where the
corresponding element in a==1.
I tried c = b(a==1), but that creats the output in a SINGLE column
(stacks observations from columns 1 and 2 from b. Any help would be
appreciated!!
cb
.
- References:
- Referencing from another vector
- From: charles benziger
- Re: Referencing from another vector
- From: Ken Davis
- Referencing from another vector
- Prev by Date: Question on Overloaded Functions
- Next by Date: sending a message to mobile via bluetooth
- Previous by thread: Re: Referencing from another vector
- Next by thread: 3D Plot
- Index(es):