loadmatfile — loads a Matlab V6 MAT-file (binary or ASCII) into Scilab
loadmatfile(format,filename[,var1[,var2[,...]]]) loadmatfile(filename[,format[,var1[,var2[,...]]]]) loadmatfile(filename[,var1[,var2,[,...[,format]]]])
character string containing the path of the file (needed)
file format (if not given and file has extension ".mat", file is considered to be binary)
binary file
option to force Scilab to read file as an ASCII file
character strings containing the name of the variables to load (only for binary files)
loads a Matlab MAT-file into Scilab. The Matlab data types are converted into the Scilab equivalents.
A = rand(10,10); B = sprand(100,100,0.1); savematfile('test_matfile.mat','A','B','-v6'); clear; loadmatfile('test_matfile.mat'); disp(A) disp(B)
This function has been developped following the "MAT-File Format"
description:
Mat-File Format