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 >> Console > lines

lines

sets and queries the display width and pagination for the console

Syntax

lines(nl)
lines(nl, nc)
lines(ncl)
ncl = lines()

Arguments

nl

An integer, the number of lines for vertical paging control.

  • If 0: no vertical paging control is done.

  • If -1: reset vertical paging control to current size of the window.

nc

An integer, the number of column of output. Used for formatting output

ncl

A 1x2 vector [nc, nl]

Description

lines handles Scilab display paging.

lines() returns the vector [# columns, # rows] currently used by Scilab for displaying the results.

lines(nl) sets the number of displayed lines (before user is asked for more) to nl.

lines(0) disables vertical paging.

lines(nl,nc) and lines([nc,nl]) changes also the size of the output to nc columns.

When Scilab is launched without -nw option, the lines parameters are automatically set according to the output window size, these parameters are also automatically modified when the window is resized.

Examples

lines(0,100)
rand(2,8)

lines(0,65)
rand(2,8)
--> lines(0,100)
--> rand(2,8)
 ans  =
   0.2113249   0.0002211   0.6653811   0.8497452   0.8782165   0.5608486   0.7263507   0.5442573
   0.7560439   0.3303271   0.6283918   0.685731    0.068374    0.6623569   0.1985144   0.2320748

--> lines(0,65)
--> rand(2,8)
 ans  =
         column 1 to 5
   0.2312237   0.8833888   0.3076091   0.2146008   0.3616361
   0.2164633   0.6525135   0.9329616   0.312642    0.2922267

         column 6 to 8
   0.5664249   0.3321719   0.5015342
   0.4826472   0.5935095   0.4368588

See also

  • mode — sets or queries the mode echoing Scilab instructions in the console
  • format — set the default output format of decimal numbers
  • disp — exibição de variáveis
  • print — imprime variáveis em um arquivo
  • clc — Clear Command Window

History

VersãoDescrição
5.4.0
  • lines is set by default to 0. Argument -1 added. See SEP #67 for more information.
  • lines manages a 1x2 vector [nc, nl] as input argument
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 15:01:09 CET 2019