Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский
Aide de Scilab >> Chaînes de caractères > sci2exp

sci2exp

converts an expression to a string

Syntax

t = sci2exp(a [,nam] [,lmax])

Arguments

a

a scilab expression, may be:

-

a constant;

-

a polynomial;

-

a string matrix;

-

a list;

-

a boolean matrix;

-

a handle (only figure and uicontrol).

nam

a character string.

t

a vector of strings, contains the expression or the affectation instruction.

lmax

an integer, contains the maximum line length. Default value is 0, which indicates no line length control; a single string is returned.

Description

sci2exp converts expression to an instruction string if nam is given or to an expression string.

Remarks

  • If a is a handle, sci2exp gives a result which has no hierarchical links, that is, with empty fields for parent and children.

  • t can be impacted by format.

Examples

a=[1 2;3 4]
sci2exp(a,'aa')
sci2exp(a,'aa',10)
sci2exp(ssrand(2,2,2))
sci2exp(poly([1 0 3 4],'s'),'fi')
sci2exp(figure("figure_name","figure1"))
b=0.123456789;
format(5);
c=sci2exp(b)
format(10);
d=sci2exp(b)

See also

  • prettyprint — From any Scilab datatype and provide a representation to the TeX, LaTeX or MathML formats
  • format — configure le format par défaut d'affichage des nombres décimaux
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:15:32 CET 2018