Read tensor from binary file

Load a binary tensor generalizing the limit of fread to matrices.
48 Downloads
Updated 14 Jan 2017

View License

Load a binary tensor generalizing the limit of fread to matrices: any dimension and major. The tensor can be stored in row or column major, and it can have an unspecified dimension. It can be used for loading data saved in numpy with tofile, or simply an image in raw form.
Interface:
D = binload(fid,type,xsize,loadall=1,order='column')

Cite As

Emanuele Ruffaldi (2024). Read tensor from binary file (https://www.mathworks.com/matlabcentral/fileexchange/61134-read-tensor-from-binary-file), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.2.0

Name

1.0.1.0

Documentation, and speed up in loadall

1.0.0.0