FTIR Data Colection and Processing

FTIR Data Colection and Processing. University of Aveiro.
26 Downloads
Updated 30 Jun 2022

View License

ftir2table takes an .ASC file and converts it to a MatLab table and excel file.
filename should be a cell vector containing the file names along with the extensions.
getASCfiles function could be used as the input of this function to get the data from all ASC files in the current folder.
getASCfiles creates a cell array of all the ASC file names in the current folder. Input not required.
An example of usage could be:
clear,clc;
dados=ftir2table(getASCfiles);
offset=0;
for i=1:length(dados)
M=cell2mat(dados(i));
M(:,2)=normalize(M(:,2)); % Normalize peaks
plot(M(:,1),(M(:,2)-offset))
hold on
offset=offset+7;
end
%xline([1000 2000 3000],'--',{'Group1','Group2','Group3'},'LabelVerticalAlignment','middle','LabelHorizontalAlignment','right','HandleVisibility','off') % Group Indication Example
xlabel('$Wavenumber$ $(cm^{-1})$','Interpreter','latex')
ylabel('$\%$ $T$',"Interpreter","latex")
axis('tight')
legend(getASCfiles) % for easy labeling
set (gca,'xdir','reverse','FontSize',14,'FontName','Iwona') % Reverse x-axis direction

Cite As

Vinícius Paula (2024). FTIR Data Colection and Processing (https://www.mathworks.com/matlabcentral/fileexchange/114400-ftir-data-colection-and-processing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0