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

Change language to:
Français - 日本語 - Português - Русский

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

Scilab Help >> Output functions > print

print

prints variables in a file

Calling Sequence

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 — write in a formatted file
  • read — matrices read
  • format — number printing and display format
  • mprintf — converts, formats, and writes data to the main scilab window
  • disp — displays variables
Report an issue
<< prettyprint Output functions printf_conversion >>

Copyright (c) 2022-2023 (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 02 13:46:52 CEST 2014