Home > Libraries > Loaders > read_npy.m

iFit/read_npy

PURPOSE ^

data = read_npy(filename)

SYNOPSIS ^

function s = read_npy(filename)

DESCRIPTION ^

 data = read_npy(filename)

 Read a Python Numpy array '.npy' file.
   can handle: 'uint8','uint16','uint32','uint64
               'int8','int16','int32','int64'
               'single','double', 'logical'

 To generate a NPY file, use python:
 >>> import numpy as np
 >>> x = np.arange(10)
 >>> np.save('outfile.npy', x)

 References:
 format specification: https://docs.scipy.org/doc/numpy/neps/npy-format.html
 contrib: https://github.com/kwikteam/npy-matlab, C. Rossant 2016

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1