-
Notifications
You must be signed in to change notification settings - Fork 9
load
Loads compatible files into YAMP.
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
load("myfile.mat")
Opens the file myfile.mat and reads out all variables.
Tries to load the file as the specified file type.
Argument filename
String
Argument filetype
String
Returns 1. entry
Void
load("myfile.mat", "binary")
Opens the file myfile.mat and reads out all variables.
load("myfile.bmp", "image")
Opens the image myfile.bmp and transforms the data to a matrix.
load("myfile.txt", "text")
Opens the textfile myfile.txt converts the data to a matrix.
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
load("myfile.mat", "x", "y", "z")
Opens the file myfile.mat and reads out variables that have been named x, y and z.