Filename: FILE2VAR.M Format: Data=file2var(Filename) Data - Content in the file Filename - Path and filename of a particular file Usages: To load data from a particular file and assign the contents to a pre-defined variable. This script can be used in MATLAB PC and UNIX version. Remark: If the file is non-exist, NaN will be returned.