| Bioinformatics Toolbox™ | ![]() |
JCAMPStruct =
jcampread(File)
| File | Either of the following:
|
| JCAMPStruct | MATLAB structure containing information from a JCAMP-DX-formatted file. |
JCAMP-DX is a file format for infrared, NMR, and mass spectrometry data from the Joint Committee on Atomic and Molecular Physical Data (JCAMP). jcampread supports reading data from files saved with Versions 4.24, 5, or 6 of the JCAMP-DX format. For more details, see:
http://www.jcamp-dx.org/
JCAMPStruct = jcampread(File) reads data from File, a JCAMP-DX-formatted file, and creates JCAMPStruct, a MATLAB structure containing the following fields.
| Field |
|---|
| Title |
| DataType |
| DataClass |
| Origin |
| Owner |
| Blocks |
| Notes |
The Blocks field of the structure is an array of structures corresponding to each set of data in the file. These structures have the following fields.
| Field |
|---|
| XData |
| YData |
| XUnits |
| YUnits |
| Notes |
Download test data in the file isa_ms1.dx from:
http://www.jcamp-dx.org/testdata.html
Read a JCAMP-DX file (isas_ms1.dx) into the MATLAB software and plot the mass spectrum.
jcampStruct = jcampread('isas_ms1.dx')
data = jcampStruct.Blocks(1);
stem(data.XData,data.YData, '.', 'MarkerEdgeColor','w');
title(jcampStruct.Title);
xlabel(data.XUnits);
ylabel(data.YUnits);A Figure window opens with the mass spectrum.

Bioinformatics Toolbox™ functions: mslowess, mssgolay, msviewer, mzxmlread
![]() | isoelectric | joinseq | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |