simplified _resample_ algorithm in matlab
I am generating a variable size rows of samples from a DSP algo开发者_JAVA百科rithm. I mean each of the row contains random number of elements(Well, depending on the input).
I would like to resize into a specific number of samples per row.
Ex: column count in each row: 15 24 41 09 27 Say I would like to make it 30 element in a row.
Each of the row is a digitized curve samples. I'm interested in making it contain equisized sample elements.
I think you need to resample your row values, the idea is roughly like this:
- interpolate each row to a continuous curve
- quantize each curve to a fixed number of values (30)
Obviously, for row with >30 values, you will lose some information.
精彩评论