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


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 — conversion en chaîne de caractères
Report an issue
<< genlib Libraries 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:
Tue Oct 24 14:34:20 CEST 2023