Unzip the following archive into your MATLAB path and run main.m which demonstrates how to train cost-insensitive classifiers on synthetic data.
Download.