Here are a few scripts in Matlab which illustrate resampling apporaches to statistical inference. The scripts in Matlab are heavily commented and easy to follow. They can just be run at the command prompt. They use specific datasets but can easily be adapted to read in alternative datasets.
The xxxxxx.txt scripts are equivalent scripts written in the free software statistics101. This software is very easy to use and has been writen to run resampling stats. It can be downloaded from here:-
All these scripts accompany the You Tube lectures that can be viewed in my You Tube channel https://www.youtube.com/channel/UC8-IAMDbKdJAh0ZPNd4FsVg
they are all gathered together in a playlist here:- https://www.youtube.com/playlist?list=PLWW0WMq4Kha5hGufm-5yx83a68ujzASx7