MATLAB: How to convert a 1-dimensional array to a timetable

sampling ratetimetable

I am using MATLAB R2020b. I currently have a .mat file, which is 1 channel of EEG data of a patient, which displays an array of 1 row by 124877600 columns of numbers.
There is no time vector because the numbers are just the EEG microvolt data.
I reshaped that array to where it would now be 124877600 rows by 1 column. I then converted it to a tall array.
I wanted to convert the tall array into a timetable, but unfortunately the arraytotimetable function does not support you specifying a sampling rate for tall arrays.
By the way, the sampling rate for this channel is 2000 Hz.
Hence, what should I do to incorporate the sampling rate in the file I currently have?
Here is what I did in my code so far:
load('EEGdataset1.mat') % file contains array called EEG_data_day1
EEGarray = reshape(EEG_data_day1,[],1)
EEGtall = tall(EEGarray)
EEGtimetable = array2timetable(EEGtall,'SampleRate',2000) % This last portion won't work because
% SampleRate does work when you use array2timetable on tall arrays. This is the part I am stuck on.

Best Answer

What about making it a timetable before you convert it to a tall array?
load('EEGdataset1.mat') % file contains array called EEG_data_day1
EEGarray = reshape(EEG_data_day1,[],1)
EEGtimetable = array2timetable(EEGarray,'SampleRate',2000)
EEGtall = tall(EEGtimetable);