Module: NMatrix::IO::Matlab

Defined in:
lib/nmatrix/nmatrix.rb,
lib/nmatrix/io/mat_reader.rb,
lib/nmatrix/io/mat5_reader.rb

Defined Under Namespace

Classes: Mat5Reader, MatReader

Class Method Summary collapse

Class Method Details

.load_mat(file_path) ⇒ Object



43
44
45
# File 'lib/nmatrix/nmatrix.rb', line 43

def load_mat file_path
  NMatrix::IO::Matlab::Mat5Reader.new(File.open(file_path, "rb+")).to_ruby
end