In a signal like in spectroscopy, where a base broadband signal is overlaid with narrow peaks, what is the best way (without prior knowledge of the shape of the baseline) to compute the baseline? I have multiple datasets with different peaks, but which should have a similar baseline. If someone could point me to Matlab resources for this, it would be great.