Here's an example from the documentation of how to get data from physionet. Here's another example of getting the data directly from GiHub.
You could try looking at some of the example data in MATLAB.
load arrhythmia.mat
load ecg_signals.mat
load ecgsignal_test.mat