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.
[freq, edges] = histcounts(data, edges);
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!