Manipulation of data for plotting
Show older comments
When opening raw data obtained from github I found it to be of a 4D structure. So basically, the dataset that I am using being s9.mat is of size 12 x 8 x 1114 x 15:
[Number of targets, Number of channels, Number of sampling points, Number of trials] = size(eeg)
From the github site it is being told that the stimulation was shown at the 39th sample so I need to ignore the first 38 samples when processing, reducing the data to 12 x 8 x 1076 x 15. I also need to consider only the first 10 trials so I will be working on a dataset of size 3 x 8 x 1076 x 10. I require to process this data (filtering etc) however to do so I first have to extract from the dataset a 1 x 1076 vector, which represents one trial (corresponding to a stimulus frequency of 9.25Hz, recorded at one of the 8 channels) and then I can apply my filter to this vector of data.
So my problem is how I can obtain the 1 x 1076 vector so that I could proceed with further processing. Would appreciate if anyone can guide me as to how I can obtain this vector.
Accepted Answer
More Answers (0)
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!