Check the save documentation, you can save specific variables by adding their names as further inputs:
save(resultFileName,'ErrPsEpochs')
save(resultFileName2,'NonErrPsEpochs')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!