<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('prem/15.0.888.9/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.888.9/resources/styles/office365icons.ie8.woff') format('woff'),         url('prem/15.0.888.9/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('prem/15.0.888.9/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.888.9/resources/styles/office365icons.mouse.woff') format('woff'),         url('prem/15.0.888.9/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div>Hello all,<br>
</div>
<div><br>
</div>
<div>Recently Ive been trying to learn the SIFT toolbox and everything has been running relatively smoothly until I have tried to validate my MVAR measures and it gives me the following error.<br>
</div>
<div><br>
</div>
<div>&gt;&gt; [ whitestats, PC, stability] = pop_est_validateMVAR(ALLEEG,0,'whitenessCriteria', {'Ljung-Box','ACF','Box-Pierce','Li-McLeod'})</div>
<div>checking condition ...</div>
<div>Using 50 lags for covariance estimation.</div>
<div>checking condition ...</div>
<div>Using 50 lags for covariance estimation.</div>
<div>Index exceeds matrix dimensions.</div>
<div><br>
</div>
<div>Error in est_checkMVARWhiteness (line 132)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; residuals =</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; est_mvarResiduals(squeeze(EEG.CAT.srcdata(:,g.winStartIdx(t):g.winStartIdx(t)&#43;winLenPnts-1,:)),</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; ...</div>
<div><br>
</div>
<div>Error in pop_est_validateMVAR (line 232)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; whitestats = est_checkMVARWhiteness(ALLEEG(cond),MODEL(cond),typeproc,g);<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>From having a rough look at it, it would appear that the part of the code that does:<br>
</div>
<div><br>
</div>
<div>g.winStartIdx(t):g.winStartIdx(t)&#43;winLenPnts-1&#8203;<br>
</div>
<div><br>
</div>
<div>generates a number greater than the number of columns in EEG.CAT.srcdata<br>
</div>
<div><br>
</div>
<div>I dont really understand what is going on.<br>
</div>
<div><br>
</div>
<div>Tyler<br>
</div>
<p><br>
</p>
<div>
<p><br>
</p>
<div name="divtagdefaultwrapper" style="font-family: calibri, arial, helvetica, sans-serif; margin: 0px;">
<div style="font-family: tahoma; font-size: 13px;">
<div style="font-family: tahoma; font-size: 13px;">
<div style="font-family: tahoma; font-size: 13px;">
<div style="font-size: 13px;">*************************
<div style="font-family: tahoma;"><br>
</div>
<div><font face="Arial"><i>Tyler Grummett ( BBSc, BSc(Hons I))</i></font></div>
<div><font face="Arial"><i>PhD Candidate</i></font></div>
<div><font face="Arial"><i>Brain Signals Laboratory</i></font></div>
<div><font face="Arial"><i>Flinders University</i></font></div>
<div><font face="Arial"><i>Rm 5A301</i></font></div>
<div><font face="Arial"><i>Ext 66124</i></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>