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

Change language to:
English - 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 >> Scilab > Переменные > checkNamedArguments

checkNamedArguments

Return list of unexpected named arguments

Syntax

names = checkNamedArguments()

Arguments

names

a vector of string with names of variables

Description

Returns names of named variables passed to current function but that are not in the function prototype.

Examples

function foo(a, b)
    x = checkNamedArguments();
    disp("Named Variable:", x);
endfunction

//No additional named variable
foo(1);
foo(1, 2);
foo(a = 1, b = 2);
foo(b = 2, a = 2);

//With additional named variables
foo(a = 1, c = 2);
foo(c = 2, b = 2);

See also

  • who — список переменных
Report an issue
<< Предопределённые переменные Переменные clear >>

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:
Mon Jan 03 14:39:50 CET 2022