Import data from *.ch file
2 ビュー (過去 30 日間)
古いコメントを表示
Hello - has anyone ever tried to import gas chromatograph data from files with .ch extension?
2 件のコメント
Mathieu NOE
2024 年 4 月 23 日
編集済み: Mathieu NOE
2024 年 4 月 30 日
I am not really in that business but just in case it would help :
Austin M. Weber
2024 年 5 月 11 日
編集済み: Austin M. Weber
2024 年 5 月 11 日
I downloaded the chemstation_130.ch file from the chromConverter repository and it looks like it's possible to extract the data using fread:
file_name = 'chemstation_130.ch';
fid = fopen(file_name);
data = fread(fid);
fclose(fid)
figure
area(data,'EdgeColor','none')
xlim([0 500])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1692296/image.png)
However, while it appears to be a GC spectrum, this method doesn't provide any metadata so I can't be sure what the units are. @Davide Masiello, you might try opening your own files using fread to see if the data match what you would expect.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!