I have a signal that contains two components. How can I separate it two its two components in matlab? Please note that the location and shape of components are different in each experiment and we do a lot of experiments. It should automatically detect the two components based on the frequency contents. I have added this comment because some people suggested c1 = x(1:80);c2 = x(81:end);
I do not mean such separation.