how to read eeg signal by column from excel file(matrix)?
3 ビュー (過去 30 日間)
古いコメントを表示
%reading signals by column from file/14 channel
sig=importdata('file.xlsx');
P4=sig(:,1);
O2=sig(:,2);
P8=sig(:,3)
........
3 件のコメント
回答 (1 件)
Walter Roberson
2023 年 2 月 13 日
編集済み: Walter Roberson
2023 年 2 月 13 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!