Hi, I am familiar with the datasample function, however, datasample does not allow for sampling more from a vector x than the number of elements x contains. I want to however do exactly this, i.e. bootstrapping in some way (however it seems that the bootstrapping function in Matlab requires specifying a function which is then applied to the data, something which I don't want). For instance, if x contains 10 elements, I might want to sample (with replacement) a new vector which would have 20 elements. What function can I use? Thanks
MATLAB: Random sampling more elements than data contains
sampling
Related Question
- I want to make random size of the datasample.output must give random size array. As i am very new in matlab. please help.
- How do i select random indicies from an array
- How to create a vector with elements randomly chosen from another vector
- How to select one of the array and change the array data selected with another value
- Same values using randi setting seed as default
Best Answer