Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

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

Scilab help >> Files : Input/Output functions > listvarinfile


list of variables in a saved data file

Calling Sequence

[names, typs, dims, vols] = listvarinfile(filename)



a character string, the pathname of the file to be inspected.


a matrix of strings, names of the variables saved in the file.


a list, dimensions of the variables saved in the file.


a numeric matrix, types of the variables saved in the file.


a numeric matrix, size in bytes of the variables saved in the file.


This utility function lists "a la whos" the variables contained in a Scilab data file produced by save.

Hypermatrices are reported as plain mlists; rationals and state-spaces are reported as plain tlists; graphic handles are not recognized.


a=eye(2,2); b=int16(ones(a)); c=rand(2,3,3);
[names,typs,dims,vols] = listvarinfile(fullfile(TMPDIR,"vals.sod"))

See Also

  • whos — listing of variables in long form
  • save — Save a variable or a serie of variables in a binary file
  • load — Load a saved variable or a serie of variables
  • save_format — format of files produced by "save"
  • type — returns the type of a variable
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:36:22 CEST 2013