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

Change language to:
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 manual >> Files : Input/Output functions > listvarinfile

listvarinfile

list the contents of a saved data file

Calling Sequence

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

Arguments

filename

character string, the pathname of the file to be inspected

nams

character array, names of the variables saved in the file

dims

list, dimensions of the variables saved in the file

typs

numeric array, types of the variables saved in the file

vols

numeric array, size in bytes of the variables saved in the file

Description

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

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

Examples

a=eye(2,2); b=int16(ones(a)); c=rand(2,3,3);
save("vals.dat",a,b,c)
listvarinfile("vals.dat")

Authors

Serge Steer

31 Jan 2001; reediting by Enrico Segre

<< listfiles Files : Input/Output functions ls >>

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:
Wed Jan 26 16:23:43 CET 2011