I have a continuous signal which I want to convert to a step-like function (I'm not sure what the correct term is)
So every sample in the lower part of the signal should be replaced by 1, middle ones 2 and high ones 3. And I want to control the size of steps (which is 3 in this example, but it can change)
How can I do that with MATLAB? Thanks in advance.
P.S.
I tried quant
and ordinal
, but I couldn't make it.