Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


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 — установка выходного формата десятичных чисел по умолчанию
  • mprintf — converts, formats, and writes data to the main scilab window
  • disp — displays variables
Report an issue
<< msprintf Output functions 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:
Mon Jun 17 17:55:07 CEST 2024