I want to do bootstrap analysis by using 20*1 matrix.
Mostra commenti meno recenti
I want to draw 500 samples from the 20*1 matrix (20 pairs of observations).
In this case, what codes do I have to use?
Risposta accettata
Più risposte (1)
the cyclist
il 27 Ott 2022
If you have the Statistics and Machine Learning Toolbox, you can do
% Pretend input data
M = rand(20,1);
samples = randsample(M,500,true);
Categorie
Scopri di più su Descriptive Statistics and Visualization in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!