<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear All,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using Measure projection toolbox (MPT) to cluster my EEG (ERP) data. In this study I have 3 groups of subjects ( First group has 10 subjects, second group has 9 subjects and third group has 10 subjects) and I have 3 conditions per group. I got 3 domains after MPT clustering. I extracted the ERP values from “sessionConditionCell” for each domains. The size of “sessionConditionCell” is 29*3 (subjects*conditions). I have used the following codes to extract the ERP values and to separate these values for each group and each condition.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>domainNumber = 1; <span style='color:red'>% this should be 1,2 or 3%</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>dipoleAndMeasure = STUDY.measureProjection.erp.object; <o:p></o:p></p><p class=MsoNormal>domain = STUDY.measureProjection.erp.projection.domain(domainNumber); <o:p></o:p></p><p class=MsoNormal>projection = STUDY.measureProjection.erp.projection;<o:p></o:p></p><p class=MsoNormal>headGrid = STUDY.measureProjection.erp.headGrid;<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>[linearProjectedMeasure sessionConditionCell groupId uniqeDatasetId dipoleDensity] = dipoleAndMeasure.getMeanProjectedMeasureForEachSession(headGrid, domain.membershipCube, projection.projectionParameter);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>for i =1 : 29 ;<o:p></o:p></p><p class=MsoNormal>Condition_1 ( i , : )= sessionConditionCell { i, 1};<o:p></o:p></p><p class=MsoNormal>Condition_2 ( i , : )= sessionConditionCell { i, 2};<o:p></o:p></p><p class=MsoNormal>Condition_3 ( i , : )= sessionConditionCell { i, 3};<o:p></o:p></p><p class=MsoNormal>end<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Group_1_Condition_1= Condition_1 ( 1:10, : ); Group_2_Condition_1= Condition_1 ( 11:19, : ); Group_3_Condition_1= Condition_1 ( 20:29, : );<o:p></o:p></p><p class=MsoNormal>Group_1_Condition_2= Condition_2 ( 1:10, : ); Group_2_Condition_2= Condition_2 ( 11:19, : ); Group_3_Condition_2= Condition_2 ( 20:29, : );<o:p></o:p></p><p class=MsoNormal>Group_1_Condition_3= Condition_3 ( 1:10, : ); Group_2_Condition_3= Condition_3 ( 11:19, : ); Group_3_Condition_3= Condition_3 ( 20:29, : );<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I plotted the average ERP for each condition, each group and each domain, I got different in<b><u> some</u></b> results from the results that I got from MPT GUI. For example the results for group 1 at Domain 1 for 3 conditions are same as the results from MPT GUI as well as the result for domain 2 and all three group and three condition are same as the MPT GUI. However, there are big different for group 2 & 3 at domain 1 as well as group 2 & 3 at domain 3 for all three conditions.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any Suggestion to solve this problem<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best Regards<o:p></o:p></p><p class=MsoNormal>Mohammed<o:p></o:p></p></div></body></html>