Plot a huge data in Matlab
1 个评论
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.

回答(1 个)
3 个评论
类别
在 帮助中心 和 File Exchange 中查找有关 Exploration and Visualization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!