Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Русский - 日本語
Ajuda do Scilab >> Arquivos : funções de Entrada/Saída > listvarinfile

listvarinfile

list of variables in a saved data file

Syntax

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

Arguments

filename

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

nams

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

dims

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

typs

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

vols

a numeric matrix, 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.

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(fullfile(TMPDIR,"vals.sod"),'a','b','c')
[names,typs,dims,vols] = listvarinfile(fullfile(TMPDIR,"vals.sod"))

See Also

  • whos — listing of variables in long form
  • save — salvando variáveis em arquivos binários
  • load — carrega variável salva
  • save_format — format of files produced by "save"
  • type — tipo de variável
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:34:44 CEST 2016