You should make sure you can plot all the individual averages. Then
you can try averaging just two subjects then 3 etc. and find where it
breaks. Maybe just one subject is problematic for some reason.
Best,
Vladimir
On Tue, Mar 20, 2012 at 3:32 PM, Muhammad Adeel Parvaz
<[log in to unmask]> wrote:
> Thanks Vladimir for your prompt response. That was my first guess as well.
> But this is also happening, when I select only those subjects who had data
> in all conditions. So, I am not sure where these NaN are coming from. How di
> i check for this? Ideally, i would like to include all the subjects
> (including those with some missing conditions) in the grand average.
>
> Thanks
> Muhammad
>
> On Tue, Mar 20, 2012 at 11:22 AM, Vladimir Litvak
> <[log in to unmask]> wrote:
>>
>> Dear Muhammad,
>>
>> This might indicate that you have some NaNs in your data which in turn
>> might be related to your missing condition problem and the fact that
>> in some cases you might have had division by zero.
>>
>> Best,
>>
>> Vladimir
>>
>> On Tue, Mar 20, 2012 at 3:06 PM, Muhammad Adeel Parvaz
>> <[log in to unmask]> wrote:
>> > Hello all,
>> >
>> > I have analyzed a few EEG subjects, and have created a grand average of
>> > the
>> > ERPs. However, after doing the grand averages, I get the following error
>> > when I try to look at the plots:
>> >
>> > ??? Error using ==> set
>> > Bad value for axes property: 'YLim'
>> > Values must be increasing and non-NaN.
>> >
>> > Error in ==> spm_eeg_review_callbacks>updateDisp at 1182
>> > set(handles.axes(i),'color',color,...
>> >
>> > Error in ==> spm_eeg_review_callbacks at 723
>> > updateDisp(D,1)
>> >
>> > ??? Error while evaluating uicontrol Callback
>> >
>> > Can anyone please explain why plotting function is unable to set 'YLim'
>> > and
>> > how can I check if the values are indeed increasing and are not non-NaN,
>> > as
>> > suggested by the error?
>> >
>> > Many thanks,
>> > Muhammad
>> >
>
>
|