bootstrap #5

  • Follow


Hello,

Is it possible to bootstrap a matrix X(n,m)?. if so, where can I find the appropriate code?

Thanks
0
Reply bouslama_ons (35) 7/24/2012 10:14:07 AM

"ons " <bouslama_ons@yahoo.fr> wrote in message <julshf$i9$1@newscl01ah.mathworks.com>...
> Hello,
> 
> Is it possible to bootstrap a matrix X(n,m)?. if so, where can I find the appropriate code?
> 
> Thanks

Please explain 

1. the phrase "bootstrap a matrix".
2. Why you want to do it.

Greg
0
Reply heath (3875) 7/24/2012 9:02:13 PM


Thank you Greg,
1- I have a matrix with dimension (n, m), and I need to draw randomly  blocks (with dimension (n1, m1)) of this matrix that belongs to the same time .

2- I whant to do it to perform  optimization using data with dimension (n1, m1)




"Greg Heath" <heath@alumni.brown.edu> wrote in message <jun2gk$5cg$1@newscl01ah.mathworks.com>...
> "ons " <bouslama_ons@yahoo.fr> wrote in message <julshf$i9$1@newscl01ah.mathworks.com>...
> > Hello,
> > 
> > Is it possible to bootstrap a matrix X(n,m)?. if so, where can I find the appropriate code?
> > 
> > Thanks
> 
> Please explain 
> 
> 1. the phrase "bootstrap a matrix".
> 2. Why you want to do it.
> 
> Greg
0
Reply bouslama_ons (35) 7/25/2012 11:02:07 AM

CORRECTED FOR THE HEINOUS SIN OF TOP-POSTING

"ons " <bouslama_ons@yahoo.fr> wrote in message <juojnf$kvt$1@newscl01ah.mathworks.com>...
> "Greg Heath" <heath@alumni.brown.edu> wrote in message <jun2gk$5cg$1@newscl01ah.mathworks.com>...
> > "ons " <bouslama_ons@yahoo.fr> wrote in message <julshf$i9$1@newscl01ah.mathworks.com>...

> > > Is it possible to bootstrap a matrix X(n,m)?. if so, where can I find the appropriate code?

> > Please explain 
> > 
> > 1. the phrase "bootstrap a matrix".
> > 2. Why you want to do it.

> Thank you Greg,
> 1- I have a matrix with dimension (n, m), and I need to draw randomly  blocks (with dimension (n1, m1)) of this matrix that belongs to the same time .
> 
> 2- I whant to do it to perform  optimization using data with dimension (n1, m1)

Still perplexed.

Nevertheless, the terminology "bootstrap a matrix" seems innappropriate.

Greg
0
Reply heath (3875) 8/2/2012 9:49:11 AM

"Greg Heath" <heath@alumni.brown.edu> wrote in message <jvdiep$2jn$1@newscl01ah.mathworks.com>...
> 
> CORRECTED FOR THE HEINOUS SIN OF TOP-POSTING
> 
> "ons " <bouslama_ons@yahoo.fr> wrote in message <juojnf$kvt$1@newscl01ah.mathworks.com>...
> > "Greg Heath" <heath@alumni.brown.edu> wrote in message <jun2gk$5cg$1@newscl01ah.mathworks.com>...
> > > "ons " <bouslama_ons@yahoo.fr> wrote in message <julshf$i9$1@newscl01ah.mathworks.com>...
> 
> > > > Is it possible to bootstrap a matrix X(n,m)?. if so, where can I find the appropriate code?
> 
> > > Please explain 
> > > 
> > > 1. the phrase "bootstrap a matrix".
> > > 2. Why you want to do it.
> 
> > Thank you Greg,
> > 1- I have a matrix with dimension (n, m), and I need to draw randomly  blocks (with dimension (n1, m1)) of this matrix that belongs to the same time .
> > 
> > 2- I whant to do it to perform  optimization using data with dimension (n1, m1)
> 
> Still perplexed.
> 
> Nevertheless, the terminology "bootstrap a matrix" seems innappropriate.

If you want to extract random submatrices, this is one way:

clear all, clc
A = magic(10)
N = 12
k=0
for n = 1:N
    
    k = k+1
    i = round(1+6*rand)
    j = round(1+6*rand)
    
    B{k} = A( i:i+2, j:j+2)
end

Hope this helps.

Greg
0
Reply heath (3875) 8/2/2012 10:40:23 PM

4 Replies
26 Views

(page loaded in 0.864 seconds)

Similiar Articles:













7/25/2012 11:52:36 AM


Reply: