https://nl.mathworks.com/help/matlab/ref/cdflib.putvarrecorddata.html
cdflib.putVarRecordData - Write entire record to variable - MATLAB
This MATLAB function writes data to a record in a variable in a Common Data Format (CDF) file.
writeentirerecordvariablematlab