Save variables in a folder

Hi,
I have written a code to extract 'epochs' from 'data'. I need to save 'ErrPsEpochs' and 'NonErrPsEpochs' for each subject and each session seaparately.

 Accepted Answer

Check the save documentation, you can save specific variables by adding their names as further inputs:
save(resultFileName,'ErrPsEpochs')
save(resultFileName2,'NonErrPsEpochs')

More Answers (0)

Categories

Asked:

on 22 Feb 2020

Edited:

on 28 Feb 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!