smoothing function is adding extra data to my EDX spectrum

I have EDX line scan data (from Aztec) for two elements x and y along a length L. The scan length is originally 1.7mm long in a .csv file. After using the smooth function
C1 = smooth (L ,C, 0.1, 'moving')
or any other smoothing operation (lowess/ loess) for that matter, the spectrum suddenly has data to a length of 2.5 mm. I have checked the smoothing functions effect on the data, by individually applying the filter to x or y, and as suspected, its the smoothing that somehow calculates extra data points beyond what has been recorded by the detector. Is there any way to fix this problem? Thanks in advance for your help.

1 Comment

Please show your smooth() call. The call you show is not a valid smooth() call. Your L might correspond to x, and your C might correspond to y, but spans for moving average must be odd positive integers.

Sign in to comment.

Answers (0)

Asked:

on 3 Dec 2016

Commented:

on 4 Dec 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!