Mean and Standard Deviation Calculator for MATLAB

版本 1.0.1 (1.5 KB) 作者: Hassaan
Calculate mean and standard deviation of a dataset.
3.0 次下载
更新时间 2024/1/16

查看许可证

% Note:
This function does not handle missing values (NaNs). It treats NaNs as regular numbers, which can affect the accuracy of the mean and standard deviation calculations.
% Example Usage of dataStatistics Function
% Creating a sample data matrix
sampleData = [1, 2, 3; 4, 5, 6; 7, 8, 9];
% Calling the dataStatistics function
[meanValue, stdValue] = dataStatistics(sampleData);
% Displaying the results
fprintf('The mean of the sample data is: %f\n', meanValue);
fprintf('The standard deviation of the sample data is: %f\n', stdValue);

引用格式

Hassaan (2024). Mean and Standard Deviation Calculator for MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/157791-mean-and-standard-deviation-calculator-for-matlab), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020a
与 R2020b 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added example usage.

1.0.0