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


get_function_path

get source file path of a library function

Syntax

path = get_function_path(fun_name)

Arguments

fun_name

a string, the name of the function

path

a vector of strings containing:

  • absolute pathname of the function source file (.sci)
  • "<script>" if fun_name is an user-defined function written in Scilab language executed in Scilab's console.
  • "<moduleName>" if fun_name is a builtin function (so-called Scilab primitive)
  • Otherwise: [].

Description

Given the name of a function get_function_path returns a vector containing

  • the absolute pathname of the function source file if the function is defined in a Scilab library (see lib)
  • "<script>" if the function is an user-defined function executed in the console
  • "<moduleName>" if the function is a builtin written and compiled in an external language (C, C++..)

get_function_path returns [] if fun_name does not match any library function.

Examples

get_function_path('median')

See also

  • lib — loads a library of Scilab functions and variables, and sets its name
  • string — преобразование в строку
Report an issue
<< genlib Библиотеки lib >>

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:12 CEST 2024