user interface - Matlab background removal/ smoothing slider for multiple lines in plot -
i have made gui import , plot multiple (sers) spectra files, in case want see code here is:
d = uigetdir(pwd, 'select folder'); files = dir(fullfile(d, '*.txt')); len = length(files); linecolors = jet(len); = 1:len = files(i).name; filename{i} = a; path = [d, '\', a]; data = dlmread(path); plot(data(:, 1), data(:, 2), 'color', linecolors(i, :), 'linewidth', 2); hold on; end hold off; these spectra have broad background , weak signals. therefore need code intensify these peaks. typical spectrum looks this:

i'm looking matlab function go (a) (b)...
i have come across freely available matlab gui files background removal, such 1 here:
http://www.victoria.ac.nz/raman/publis/codes/cobra.aspx
but don't understand matlab coding , therfore cannot implement in own gui. i'm wondering if there easier in built matlab function can this?
in case there lot of background peaks include smoothing function well. can suggest suitable 1 smoothing spectrum such 1 below:

i vary amount of smoothing/ background removal. able make slider this? or else allow user enter in number according how want function run?
i'm sorry asking many questions pointers appreciated!
Comments
Post a Comment