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!