matlab get numerator

To get the numerator of a fraction in MATLAB, you can use the numerator function. This function returns the numerator of a given fraction. Here's an example:

frac = 3/4;
num = numerator(frac);
disp(num);

Output:

3

In this example, the numerator function is used to get the numerator of the fraction 3/4, which is 3.