You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). FTIR Data Colection and Processing (https://se.mathworks.com/matlabcentral/fileexchange/114400-ftir-data-colection-and-processing), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (2.16 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
