Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - English

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

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

Scilab help >> Input/Output functions > load


Load a saved variable or a serie of variables

Calling Sequence

load(filename [,x1,...,xn])
load(fd [,x1,...,xn])



character string containing the path of the file


a file descriptor given by a call to mopen


arbitrary Scilab variable name(s) given as strings.


The load command can be used to reload in the Scilab session variables previously saved in a file with the save command. If the file contains graphic handle variables, the corresponding graphics_entities are drawn.

Since Scilab 5.0, all uimenu or uicontrol handles are also drawn.

load(filename) loads the variables saved in file given by its path filename.

load(fd) loads the variables saved in file given by its descriptor fd.

load(filename,'x','y') or load(fd,'x','y') loads only variables x,y.

Even if the binary file format has changed with 2.5 version of Scilab, load(filename,...) is able to read old format files.

Note that the written file is portable to other operating systems and architectures (little and big endian).


clear a
clear b

See Also

  • save — Save a variable or a serie of variables in a binary file
  • read — matrices read
  • listvarinfile — list the contents of a saved data file
  • save_format — format of files produced by "save"
  • exec — script file execution
  • mopen — open a file
<< input Input/Output functions oldload >>

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 May 12 11:44:25 CEST 2011