how to make a bootstrap with matlab?

6 views (last 30 days)
vachelard
vachelard on 6 Apr 2014
Hi
I have a problem with matlab function. I have a matrix of dimension (111.1). I would like to from vector to create a matrix (111.100) or the values in this matrix are taken randomly in my original matrix, the values in my new matrix can repeat. I try to do this with the bootstrap function but I do not. I also try with another code but it not give me the desired result. My first code is:
residu=repmat(resid,1,1000);
randomresidu1=[];
for i=1:1000
randomresidu=resid(round(111*rand(111,1)),i);
randomresidu1=randomresidu;
end
my second code is :
for j= 1:100
boot(:,j)=bootstrp(111,@eq,resid);
end

Answers (0)

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!