Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Français


print

prints variables in a file

Syntax

print('file-name',x1,[x2,...xn])

Description

prints xi on file 'file-name' with the current format, i.e. the format used by scilab to display the variables. All types of variables may be "print"'ed

Note : xi must be a named variable, with expressions variable name part of the display is unpredictable.

print(%io(2),...) prints on Scilab's window. this syntax may be used to display variables within a macro.

Examples

a=rand(3,3);p=poly([1,2,3],'s');l=list(1,'asdf',[1 2 3]);
print(%io(2),a,p,l)
write(%io(2),a)

See also

  • write — writes real numbers or strings in the console or in a formatted file
  • read — matrices read
  • format — configure le format par défaut d'affichage des nombres décimaux
  • mprintf — converts, formats, and writes data to the main scilab window
  • disp — displays variables
Report an issue
<< msprintf Sorties printf_conversion >>

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 Oct 24 11:15:59 CEST 2024