I understand that you have a dataset represented as a timetable and you want to analyze the frequency distribution of these values by categorizing them into discrete classes from 0 to 100. Here is an example of how to approach this:
- Prepare your data: Ensure your timetable values are in a vector format that MATLAB can process.
- Define the classes: Since you want classes from 0 to 100, you will define these classes explicitly.
- Use the 'histcounts' function: This function will help you calculate the frequency distribution.
% Assume 'data' is your vector containing the timetable values
data = [add_data_here]; % Replace with your actual data
% Define the edges of the classes (bins)
edges = 0:1:100; % Classes from 0 to 100 with step of 1
% Calculate the frequency distribution
[freq, edges] = histcounts(data, edges);
% Display the frequency distribution
disp('Class Edges:');
disp(edges);
disp('Frequencies:');
disp(freq);
% Plot the histogram
figure;
histogram(data, edges);
xlabel('Class');
ylabel('Frequency');
title('Frequency Distribution');
Frequency distribution for a randomly generated set of data is shown below:

Kindly refer to the following documentation for more information on the 'histcounts' function:
I hope this helps!