how to read eeg signal by column from excel file(matrix)?

3 ビュー (過去 30 日間)
nada aldeeb
nada aldeeb 2023 年 2 月 12 日
編集済み: Walter Roberson 2023 年 2 月 13 日
%reading signals by column from file/14 channel
sig=importdata('file.xlsx');
P4=sig(:,1);
O2=sig(:,2);
P8=sig(:,3)
........
  3 件のコメント
Walter Roberson
Walter Roberson 2023 年 2 月 12 日
readtable()
nada aldeeb
nada aldeeb 2023 年 2 月 13 日
pllease i need to full code if you can please help me.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
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);

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by