In MATLAB, simply execute
% D/L and save hapi.
urlwrite('https://raw.githubusercontent.com/hapi-server/client-matlab/master/hapi.m','hapi.m');
help hapi
Or, download the package.
Example usage is given in hapi_demo.m.
The console and figure output of this script is viewable at hapi_demo.md.
To run examples, execute
% Download hapi.m
urlwrite('https://raw.githubusercontent.com/hapi-server/client-matlab/master/hapi.m','hapi.m');
% Download hapi_demo.m
urlwrite('https://raw.githubusercontent.com/hapi-server/client-matlab/master/hapi_demo.m','hapi_demo.m');
hapi_demo % Execute hapi_demo script
git clone https://github.com/hapi-server/client-matlab.git
TODO:
- Generalize time parsing in
hapi.m
. - Finish binary reader.
The HAPI specification allows dataset and parameter strings to be Unicode encoded as UTF-8. Prior to MATLAB 2021a, .m
files with UTF-8 were not supported. See unicode.m for a work-around.
Submit bug reports and feature requests on the repository issue tracker.
Bob Weigel [email protected]