Plot a huge data in Matlab
1 commentaire
Hi Sally,
Since I don't have the actual dataset, I will generate some random data that resembles the characteristics provided (116,100 data points, minimum=0, maximum=1,734,719, average=1022, standard deviation=16,312).
% Generate random data
data = 16312 * randn(116100, 1) + 1022;
Next, I will calculate the CDF values for the dataset and use the ecdf function in MATLAB to compute the empirical CDF.
[f, x] = ecdf(data);
Now, I can plot the CDF using the generated data and CDF values. language-matlab
figure;
plot(x, f, 'LineWidth', 2);
xlabel('Data Points');
ylabel('Cumulative Probability');
title('Cumulative Distribution Function (CDF) Plot');
grid on;
Please see the attached plot.

Réponses (1)
3 commentaires
Catégories
En savoir plus sur Exploration and Visualization dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!