Dear Eelke, dear Arjen,<br><br>thanks for helping!<br><br>Here, I analyze data on a cluster with Matlab 2008b. Although I found a folder "@dataset" in  /toolbox/shared/statslib/, unfortunately there is no such function in it. <br>
Since I found the function in my local Matlab, which is version 2010a, I guess that this is a feature of newer Matlab versions. I downloaded one dataset to my local machine and with Matlab 2010a it worked...<br><br>I am not sure whether it might be good to note that in the tutorial...<br>
<br>Best,<br><br>Andreas<br><div class="h5"></div><br><br><div class="gmail_quote">2012/8/13 Eelke Spaak <span dir="ltr"><<a href="mailto:eelke.spaak@donders.ru.nl" target="_blank">eelke.spaak@donders.ru.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andreas,<br>
<br>
In addition to Arjen's comments, it might also be wise to execute<br>
'which boxplot' on the Matlab command prompt, to see whether you have<br>
a version of boxplot on your path that is shadowing the stats toolbox<br>
version.<br>
<br>
Best,<br>
Eelke<br>
<div class="HOEnZb"><div class="h5"><br>
On 13 August 2012 13:19, Stolk, A. <<a href="mailto:a.stolk@fcdonders.ru.nl">a.stolk@fcdonders.ru.nl</a>> wrote:<br>
> Hi Andreas,<br>
><br>
><br>
><br>
> Thanks for testing with the newest version. My suspicion that your bug<br>
> pertains to the matlab function 'boxplot' has grown. Boxplot calls another<br>
> function, 'dataset', that does exist in my version of matlab (2010b). To be<br>
> more precise, it is located in the /toolbox/shared/statslib/@dataset/<br>
> directory.<br>
><br>
><br>
><br>
> In my version of boxplot the line 'boxValDs = dataset();' is at line 2021<br>
> and not at line 2020. Please therefore check if your boxplot version, or<br>
> your matlab version in general, is not corrupted by performing the following<br>
> command: boxplot(1).<br>
><br>
><br>
><br>
> Hope this helps,<br>
><br>
> Arjen<br>
><br>
> ________________________________<br>
><br>
> Van: "Andreas Sauer" <<a href="mailto:sauer.mpih@googlemail.com">sauer.mpih@googlemail.com</a>><br>
> Aan: "FieldTrip discussion list" <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
> Verzonden: Maandag 13 augustus 2012 11:39:23<br>
> Onderwerp: Re: [FieldTrip] ft_qualitycheck<br>
><br>
><br>
> Dear Arjen,<br>
><br>
> thanks for your replay!<br>
><br>
> I just tried with the current version of fieldtrip (20120812) but I still<br>
> get this error message:<br>
><br>
><br>
> ??? Undefined function or variable 'dataset'.<br>
><br>
> Error in ==> boxplot>computeBoxLocation at 2020<br>
> boxValDs = dataset();<br>
><br>
> Error in ==> boxplot at 312<br>
> [boxVal,boxValPlot,boxIdx] = computeBoxLocation(xSorted,...<br>
><br>
> Error in ==> ft_qualitycheck>draw_figure at 547<br>
>   boxplot(h.HmotionAxes, hmotions, 'orientation', 'horizontal', 'notch',<br>
> 'on');<br>
><br>
> Error in ==> ft_qualitycheck at 296<br>
>       draw_figure(info, temp_timelock, temp_freq, temp_summary,<br>
> temp_headpos, toi);<br>
><br>
><br>
> I call the function ft_qualitycheck as described in the tutorial.<br>
> cfg.dataset = subject_xy.ds; ft_qualitycheck(cfg). It runs the analysis, it<br>
> writes the .mat-file but then it throws the error message. So to me, it<br>
> seems that there is some information (the variable 'dataset') missing. But I<br>
> don't know whether this is due to our recording or an error in one of the<br>
> functions...<br>
><br>
> Best,<br>
><br>
> Andreas<br>
><br>
><br>
><br>
><br>
> 2012/8/10 Stolk, A. <<a href="mailto:a.stolk@fcdonders.ru.nl">a.stolk@fcdonders.ru.nl</a>><br>
>><br>
>> Hi Andreas,<br>
>><br>
>><br>
>><br>
>> The boxplot function is a matlab statistics toolbox function. I do not see<br>
>> why it throws an error here. However, I did find a problem related to the<br>
>> dataset history file (.hist) which contains details of the recording itself.<br>
>> I will fix this issue right away. If you are still getting the same error<br>
>> with tomorrow's version of FT, please give me shout. And preferably provide<br>
>> some more details about the error, and how you are calling the function.<br>
>><br>
>><br>
>><br>
>> best,<br>
>><br>
>> Arjen<br>
>><br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>><br>
>> Van: "Andreas Sauer" <<a href="mailto:sauer.mpih@googlemail.com">sauer.mpih@googlemail.com</a>><br>
>> Aan: <a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br>
>> Verzonden: Vrijdag 10 augustus 2012 15:49:47<br>
>> Onderwerp: [FieldTrip] ft_qualitycheck<br>
>><br>
>><br>
>> Dear all,<br>
>><br>
>> I tried to check my MEG (CTF) datasets with ft_qualitycheck. Unfortunately<br>
>> it didn't work. An error occurs in the boxplot.m function in line 2020,<br>
>> where the data should be copied into the dataset. But for me, there is no<br>
>> dataset().<br>
>><br>
>> My question is whether this is due to my dataset-information or due to an<br>
>> error in the script? An how to solve this issue?<br>
>><br>
>> Any help is highly appreciated!<br>
>><br>
>> Thanks!<br>
>><br>
>> Best regards,<br>
>><br>
>> Andreas<br>
>><br>
>><br>
>> --<br>
>> Andreas Sauer<br>
>> Max Planck Institute for Brain Research<br>
>> Department of Neurophysiology<br>
>> Deutschordenstraße 46<br>
>> 60528 Frankfurt am Main<br>
>> Germany<br>
>><br>
>> T: <a href="tel:%2B49%2069%2096769%20278" value="+496996769278">+49 69 96769 278</a><br>
>> F: <a href="tel:%2B49%2069%2096769%20327" value="+496996769327">+49 69 96769 327</a><br>
>> Email: <a href="mailto:sauer.mpih@gmail.com">sauer.mpih@gmail.com</a><br>
>> <a href="http://www.brain.mpg.de" target="_blank">www.brain.mpg.de</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> fieldtrip mailing list<br>
>> <a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
>> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> fieldtrip mailing list<br>
>> <a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
>> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Dipl.-Psych. Andreas Sauer<br>
> Max Planck Institute for Brain Research<br>
> Deutschordenstraße 46<br>
> 60528 Frankfurt am Main<br>
> Germany<br>
><br>
> T: <a href="tel:%2B49%2069%2096769%20278" value="+496996769278">+49 69 96769 278</a><br>
> F: <a href="tel:%2B49%2069%2096769%20327" value="+496996769327">+49 69 96769 327</a><br>
> Email: <a href="mailto:sauer.mpih@gmail.com">sauer.mpih@gmail.com</a><br>
> <a href="http://www.brain.mpg.de" target="_blank">www.brain.mpg.de</a><br>
><br>
><br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div></div><div>Dipl.-Psych. Andreas Sauer</div><div>Max Planck Institute for Brain Research</div><div>Deutschordenstraße 46</div><div>60528 Frankfurt am Main</div>
<div>Germany</div><div><br></div><div>T: +49 69 96769 278</div><div>F: +49 69 96769 327</div><div>Email: <a href="mailto:sauer.mpih@gmail.com" target="_blank">sauer.mpih@gmail.com</a></div><div><a href="http://www.brain.mpg.de" target="_blank">www.brain.mpg.de</a></div>
<br>