Morlet Wavelet figure export for CNN

Hi everyone,

In my dataset, I have 235 events and after I preprocessed them, I use the morlet wavelet in order to transform every event into a figure.
My question is, I have 235 wavelets in my directory as .mat files.
How can I export them through a loop in order to import them into a CNN?

Thank you in advance!

This tutorial explains how to start writing scripts with Brainstorm:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting

Please get back to us if you don't find any solution there.