# Accessing results

Results are stored in a `mat` file for compatibility reasons. The format depends on the task that generated the results, but a typical procedure to grab data from experiments is:

    ECGw = ECGwrapper('recording_name', 'your_rec_filename');
    result_filename = ECGw.GetCahchedFileName('QRS_detection');
    results = load(cached_filenames{1});

In this example, the results from the previous QRS detection experiment is loaded in the `results` variable. The format for the specific tasks was described in the following links:

- QRS detection
- ABP/PPG pulse detection tasks have the same format of QRS detection
- ECG delineation
- Heartbeat classifier
- Arbitrary tasks