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

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

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

Aide de Scilab >> Console > completion

completion

returns files or variables names or reserved keywords starting as a given text

Syntax

r = completion(beginning_of_a_word)
r = completion(beginning_of_a_word, dictionary)
[functions, commands] = completion(beginning_of_a_word)
[functions, commands, variables] = completion(beginning_of_a_word)
[functions, commands, variables, macros] = completion(beginning_of_a_word)
[functions, commands, variables, macros, graphic_properties] = completion(beginning_of_a_word)
[functions, commands, variables, macros, graphic_properties, files] = completion(beginning_of_a_word)

Arguments

r

a string matrix

beginning_of_a_word

a string

dictionary

a string ("functions", "commands", "variables", "macros", "graphic_properties", "files")

functions, commands, variables, macros, graphic_properties, files

a string matrix

Description

Returns words that start with the text you pass as parameter.

functions: a string matrix of functions name (C gateways). See what.

commands: a string matrix of command words (reserved). See what.

variables: a string matrix of variables names. See who.

macros: a string matrix of macros names. See who.

graphic_properties: a string matrix of graphic properties.

files: a string matrix of files names.

Examples

r = completion('w')
r = completion('w','functions')
r = completion('w','commands')
r = completion('w','variables')
r = completion('w','macros')
r = completion('w','graphic_properties')
r = completion('w','files')

[functions,commands,variables,macros,graphic_properties,files] = completion('w')
[functions,commands,variables,macros,graphic_properties] = completion('w')
[functions,commands,variables,macros] = completion('w')
[functions,commands,variables] = completion('w')
[functions,commands] = completion('w')

See also

  • getscilabkeywords — returns a list with all scilab keywords.
  • who — liste des variables
  • what — liste des primitives Scilab
  • libraryinfo — get macros and path of a scilab library
  • librarieslist — gets the list of loaded Scilab libraries
Report an issue
<< clc Console console >>

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:
Tue Feb 25 08:50:45 CET 2020