Hi Nicholas,
The "bootfun" input parameter in the "bootci" function is a handle to a function that computes the statistic of interest from the resampled data. With skewed data, using the mean as the statistic might not always be appropriate because the mean is sensitive to outliers and skewness. Instead, you might consider trimmed mean using "trimmean" function or custom statistics function, which can give a better central tendency measure for skewed distributions.
Here is an example how you can use custom function handle in "bootci" function:
ci = bootci(nboot, @(data) customFunction(data), data);
Please refer to the following MathWorks documentation for more information on the "bootci" function: