Switch scilab functions protection mode (original) (raw)

Scilab 5.3.3

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

Scilab help >> Scilab > funcprot

funcprot

switch scilab functions protection mode

Calling Sequence

prot=funcprot() funcprot(prot)

Arguments

prot

integer with possible values 0,1,2

Description

Scilab functions are variable, funcprot allows the user to specify what scilab do when such variables are redefined.

Examples

funcprot(1) deff('[x]=foo(a)','x=a') deff('[x]=foo(a)','x=a+1') foo=33 funcprot(0) deff('[x]=foo(a)','x=a') deff('[x]=foo(a)','x=a+1') foo=33