how to read eeg signal by column from excel file(matrix)?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
%reading signals by column from file/14 channel
sig=importdata('file.xlsx');
P4=sig(:,1);
O2=sig(:,2);
P8=sig(:,3)
........
3 comentarios
Respuestas (1)
Walter Roberson
el 13 de Feb. de 2023
Editada: Walter Roberson
el 13 de Feb. de 2023
sig = readtable('file.xlsx');
P4 = sig{:,1};
O2 = sig{:,2};
P8 = sig{:,3};
There is a more compact but harder to understand version for the case that all columns of the table are numeric and you are assigning them all:
sigcell = num2cell(readmatrix('file.xlsx'), 1);
[P4, O2, P8, Q3, N7, R2D2, C3P0, OB1, Number5, Fifth, V, Number6, Agent99, Experiment626 ] = deal(sigcell{:});
Your R2019a version is the first version that supported readmatrix(); older versions would need
sigcell = num2cell(table2array(readtable('file.xlsx')), 1);
0 comentarios
Ver también
Categorías
Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!