Mean and Standard Deviation Calculator for MATLAB

Version 1.0.1 (1,54 ko) par Hassaan
Calculate mean and standard deviation of a dataset.
3 téléchargements
Mise à jour 16 jan. 2024

Afficher la licence

% 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);

Citation pour cette source

Hassaan (2025). 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. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2020a
Compatible avec les versions R2020b et ultérieures
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.1

Added example usage.

1.0.0