Hi Martin,
If you are encountering memory issues when using the resample() function with large sets, there are alternative approaches you can consider to achieve the desired resampling ratio of 576/625 (from 8.3333 Msps to 7.68 Msps). Two of them being:
- dsp.FarrowRateConverter: This is a polynomial interpolator that can be used for resampling. It offers more flexibility than resample() and can handle non-integer resampling ratios. However, it might require more computational resources.
- dsp.SampleRateConverter: This is a more advanced resampling technique. It provides high-quality resampling with efficient memory usage. The “dsp.SampleRateConverter” object allows you to specify the resampling ratio precisely and provides various options for filter design and implementation.
To choose between “dsp.FarrowRateConverter” and “dsp.SampleRateConverter”, consider the following:
- If you need a more flexible approach and can handle the computational requirements, try “dsp.FarrowRateConverter”.
- If memory efficiency is crucial and you want high-quality resampling, consider using “dsp.SampleRateConverter”.
You can experiment with both approaches to determine which one suits your requirements best.
Hope it helps,
Best Regards,
Raghav Bansal
MathWorks Technical Support