exporting data of ERP behavioral PLS
giorgio.arcara
Posted on 05/17/12 05:12:13
Number of posts: 6
Dear PLS experts,
I need to export some PLS results to draw some graphs outside matlab, but I was not able to figure out how data are arranged in matrices of ERPresuls.mat file.
Specifically, I need to export the data of design scores and the scatterplot with scalp-scores and behavioral measures.
I tried by myself, but I don't understand how subjects and conditions are arranged in result matrices
Thanks!
Giorgio
Untitled Post
I'm Online
jshen
Posted on 05/17/12 09:27:03
Number of posts: 291
You have to do so LV by LV, group by group and condition by condition. e.g.:
For design scores vs scalp-scores:
figure;hold on;
for i=1:size(designscores,1),plot(designscores(i,1),scalpscores(i,1),'*');end;
For behavioral measures vs scalp-scores:
figure;hold on;
for i=1:num_subj_lst(1),plot(behavdata_lst{1}(i,1),scalpscores(i,1),'*');end;
p=polyfit(behavdata_lst{1}(1:num_subj_lst(1),1),scalpscores(1:num_subj_lst(1),1),1);
v=polyval(p,behavdata_lst{1}(1:num_subj_lst(1),1));
plot(behavdata_lst{1}(1:num_subj_lst(1),1),v);