<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hello again, I have recently been working with a two STUDYs (12 subjects, two conditions in each study) in which I have calculated some new data for each participant and condition (MGFP), as well as calculated a difference ERP and difference MGFP between the two conditions. </div><div><br></div><div>So I have: </div><div>STUDY1 – cond1 & cond2, calculated DIFF1</div><div>STUDY2 – cond3 & cond4, calculated DIFF2</div><div><br></div><div>My general approach has been </div><ol><li>Load STUDY 1 and calculate the ERP for each condition (I have actually done this by looping through an EEG(x).erp variable I inserted earlier, though I now realise I could have got the same info more easily from STUDY.changrp.erpdata)</li><li>Do the subtraction DIFF1 = ERPcond2 – ERPcond1</li><li>Load STUDY 2 and do the same</li></ol><div>I'm then left with DIFF1 and DIFF2 (60 elecs x 500 pts x 12 ss)</div><div><br></div><div>What I'd like to do is somehow use the std_erpplot function to plot, compare and do the stats on these two new waves, but I don't have the a whole new 'STUDY' structure to go with them. Looking at the the help for std_erpplot it looks like you do need a STUDY as an input.</div><div><br></div><div>I then had a look through std_erpplot.m to see if I could find an internal plotting function that could work with a [elecs, points, ss] matrix, and I found std_plotcurve… Am I heading in the right direction?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>