Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Matlab binary files I/O > loadmatfile

loadmatfile

loads a Matlab V6 MAT-file (binary or ASCII) into Scilab

Syntax

loadmatfile(format,filename[,var1[,var2[,...]]])
loadmatfile(filename[,format[,var1[,var2[,...]]]])
loadmatfile(filename[,var1[,var2,[,...[,format]]]])

Arguments

filename

character string containing the path of the file (needed)

format

file format (if not given and file has extension ".mat", file is considered to be binary)

"-mat"

binary file

"-ascii"

option to force Scilab to read file as an ASCII file

var1, var2

character strings containing the name of the variables to load (only for binary files)

Description

loads a Matlab MAT-file into Scilab. The Matlab data types are converted into the Scilab equivalents.

Examples

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)

See also

  • load — Loads some archived variables, a saved graphic figure, a library of functions
  • savematfile — saves some Scilab variables in a Matlab MAT-file (binary or ASCII)
  • save — Saves some chosen variables in a binary data file
  • mfile2sci — Matlab M-file to Scilab conversion function
  • matfile2sci — converts a Matlab 5 MAT-file into a Scilab binary file

Bibliography

This function uses MATIO library ( http://sourceforge.net/projects/matio/ ).

Report an issue
<< Matlab binary files I/O Matlab binary files I/O matfile2sci >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 15:05:27 CET 2019