이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
This is a small C++ class that lets you write matrices, vectors and values to a .mat file. It is simple enough that you can easily modify it yourself.
The mat file format is simply an HDF5 file with a pointless header prepended. This class uses libhdf5 from here:
http://www.hdfgroup.org/HDF5/release/obtain5.html
to write the HDF5 file, and the prepends the header to it. Currently it reads the entire file back in and writes it all out again with the header, because I couldn't get the HDF5 library to append to an existing file. If anyone knows how I'd love to know!
The resulting files can be loaded in matlab using
load('/path/to/file.mat'); % Puts contents in main workspace.
s = load('/path/to/file.mat'); % Puts contents in s structure.
인용 양식
Tim (2026). C++ class to write HDF5 .mat files. (https://kr.mathworks.com/matlabcentral/fileexchange/27350-c-class-to-write-hdf5-mat-files), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 |
