mat

package module
v0.0.0-...-5600d55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2015 License: MIT Imports: 4 Imported by: 0

README

MATLAB MAT

The package provides a reader and writer of MATLAB MAT-files.

Documentation

Installation

Fetch the package:

go get -d github.com/ready-steady/mat

Go to the directory of the package:

cd $GOPATH/src/github.com/ready-steady/mat

Set the MATLAB_ROOT and MATLAB_ARCH environment variables according to your MATLAB installation. For example,

export MATLAB_ROOT=/Applications/MATLAB_R2015a.app
export MATLAB_ARCH=maci64

Finally, install the package:

make install

In order to run an executable that relies on this package, the dynamic linker should be able to discover MATLAB’s libraries. To this end, an appropriate environment variable should be set depending on your system. For example,

export DYLD_LIBRARY_PATH="$MATLAB_ROOT/bin/$MATLAB_ARCH:$DYLD_LIBRARY_PATH"

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Create a pull request.

Documentation

Overview

Package mat provides a reader and writer of MATLAB MAT-files.

http://www.mathworks.com/help/pdf_doc/matlab/apiext.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File represents a file.

func Open

func Open(path string, mode string) (*File, error)

Open opens a file for reading and writing.

http://www.mathworks.com/help/matlab/apiref/matopen.html

func (*File) Close

func (f *File) Close()

Close closes the file.

func (*File) Get

func (f *File) Get(name string, object interface{}) error

Get reads an object from the file.

func (*File) Put

func (f *File) Put(name string, object interface{}) error

Put writes an object into the file.

func (*File) PutArray

func (f *File) PutArray(name string, object interface{}, dimensions ...uint) error

PutArray writes a multidimensional array into the file.

func (*File) PutMatrix

func (f *File) PutMatrix(name string, object interface{}, rows, cols uint) error

PutMatrix writes a matrix into the file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL