Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

load

Loads compatible files into YAMP.

load(filename)

Loads all variables found in the file, if the file contains YAMP variables. Else it treats the file as an ASCII data table or an image file and stores the content as a matrix with the name "data" or "image".

Argument filename

String

Returns 1. entry

Void

Example

load("myfile.mat")

Opens the file myfile.mat and reads out all variables.

load(filename,filetype)

Tries to load the file as the specified file type.

Argument filename

String

Argument filetype

String

Returns 1. entry

Void

Example

load("myfile.mat", "binary")

Opens the file myfile.mat and reads out all variables.

Example

load("myfile.bmp", "image")

Opens the image myfile.bmp and transforms the data to a matrix.

Example

load("myfile.txt", "text")

Opens the textfile myfile.txt converts the data to a matrix.

load(filename,args)

Loads specified variables found in the file, if the file contains YAMP variables. Else it treats the file as an ASCII data table or an image file and stores the content as a matrix with the name of the first variable.

Argument filename

String

Argument args

Arguments

Returns 1. entry

Void

Example

load("myfile.mat", "x", "y", "z")

Opens the file myfile.mat and reads out variables that have been named x, y and z.

Clone this wiki locally