Hi,
Thank you so much for the update.
Both areas are having a broad peak (Sample_DataSet). Peak at 2050-2200 is smaller, while 2800-3000 is much bigger.
Yes, I want to measure the total area under the peak of selected areas, then do the following calculation from the results.
Int.1/(Int1+Int2)
result = integrated_area2 / (integrated_area1 + integrated_area2); I have updated this.
To double check, I did a calculation in excel adapting trapazoid rule, and got a very different result with the Sample_DataSet..!!
I also tried to do a peak fitting using the following code.
S = load('Sample_Raman_Data2.mat');
% Perform Lorentzian peak fitting.
S.Fit = PeakFit(S.Data, 'Window', [2050, 2200], 'PeakShape', 'Lorentzian';
It gives an error as
Unrecognized function or variable 'PeakFit'.
I tried to set up corect path and install the required additional packages in the correct place. But nothing was successful unfortunately. Totally lost in this approach here.