Skip to content

Commit 859cb51

Browse files
committed
update
1 parent 57fd06a commit 859cb51

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

fLoad_EEG_csv.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
% Function to load a .csv file
2+
% input: path -> Address where the files are stored
3+
% input: file_name -> String file name to be uploaded
4+
% return: allData -> File uploaded to worspace
5+
% Example to use:
6+
% path = fullfile('./data/');%data folder
7+
% allData = fLoad_EEG_csv(path,'AllDataRMS.csv');
8+
9+
% More examples: https://github.com/vasanza/Matlab_Code
10+
% Read more: https://vasanza.blogspot.com/
11+
12+
function [allData] = fLoad_EEG_csv(path,file_name)
13+
path1=fullfile(path,file_name);
14+
data=readtable(path1);%Select i CSV file
15+
allData=table2array(data);% Array Double
16+
end

0 commit comments

Comments
 (0)