RSK2MAT converts the regular RSK structure format to the legacy .mat RBR structure array. The output structure (RBR) is similar to the .mat file; however the following fields will be missing: comments, serialstarttime/serialendtime, derived channels, events, parameters and sample code.

This function is not compatible with files that were initially generated by Mobile Ruskin.

Only use this function if you have scripts written using the legacy .mat file export from Ruskin. If possible use the .rsk file directly, it contains more information and the .mat export will not be supported in the future.