Standard error of the mean, ignores NaNs
Version 1.2.0.0 (1.62 KB) by
MikeCF
Calculates s.e.m., ignoring NaN values
s.e.m. = std(vector_data)/sqrt(length(vector_data));
Given a vector_data, calculates the standard deviation and length of vector_data without taking NaNs into account.
Cite As
MikeCF (2024). Standard error of the mean, ignores NaNs (https://www.mathworks.com/matlabcentral/fileexchange/67270-standard-error-of-the-mean-ignores-nans), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types > NaNs >
Find more on NaNs in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.