Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Stupid question ;)
Replies: 2   Last Post: May 9, 2013 8:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 8,112
Registered: 6/7/07
Re: Stupid question ;)
Posted: May 9, 2013 8:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 5/8/2013 10:45 PM, dpb wrote:
...

>> When I will have B, I will just create a lot of resamples with
>> replacement of these blocks
>> for example X = [ B(1) B(1) B(6) B(4) B(3) B(1)]

>
> Just like you wrote it---but there's really no need; just use
>
> X = [u(:,randperm(size(u,2)))];
>

Oh, I overlooked you're sampling w/ replacement apparently--see

doc randi

instead of randperm for that...

--



Date Subject Author
5/8/13
Read Stupid question ;)
SK
5/8/13
Read Re: Stupid question ;)
dpb
5/9/13
Read Re: Stupid question ;)
dpb

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.