got pointer problem when trying with mean function

IRdc = mean ((IRheartsignal, count),DEC);

What's that?

Mean

Format: average = mean(array, slice_count);

Calculates the mean average of the values in array. slice_count is the number of entries in the array.