L.fole
L.fole

Reputation: 807

simplified _resample_ algorithm in matlab

I am generating a variable size rows of samples from a DSP algorithm. 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.

Upvotes: 0

Views: 124

Answers (1)

ascanio
ascanio

Reputation: 1526

I think you need to resample your row values, the idea is roughly like this:

  1. interpolate each row to a continuous curve
  2. quantize each curve to a fixed number of values (30)

Obviously, for row with >30 values, you will lose some information.

Upvotes: 1

Related Questions