<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hello,<br><br>I'm trying to load data into EEGLAB with the use of my own function. When im loading the data the plot looks like this: http://s48.photobucket.com/albums/f250/allstarsfkt/?action=view&current=EEGplot_data_cheps_1-11.jpg<br>Now i can scale this with the + and - button to scale it to the right scale.<br>The next step in my function is to determin a certain threshold with the ginput function. To get the correct threshold, for filtering data i need to substract the scale from the y-value of the ginput. This works with lower scales(tested up till 120 with different data and it worked without a problem). <br><br>Test scenario:<br>I load the data, then scale it up to 150 (standard it was 70). Then using the ginput i determin my threshold and it said i clicked on 850 (This while the range of that channel was 0-360). <br>The message i get is: Attemted to acces tmpdur(1); index out of bounds because numel(tempdur) =0.<br><br>If I don't change the original scale then it works without any further issues.<br>What can i do to fix this?<br><br>Regards,<br><br>Bram Stollman<br>Student, Computer Science<br>Zuyd University Heerlen, The Netherlands<br></div><br /><hr />Het beste van Windows, nu ook online. <a href='http://get.live.com/nl-nl/wl/all' target='_new'>Deel jouw wereld met Windows Live. Download nu.</a></body>
</html>