Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português do Brasil - English

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

Scilab manual >> Functions > fun2string

fun2string

Scilab関数のアスキー定義を生成する

呼び出し手順

txt=fun2string(fun,name)

パラメータ

fun

関数型変数

name

文字列, 生成した関数名

txt

文字列の列ベクトル, scilab関数を指定するテキスト

説明

ロード済みのScilab関数の擬似コードを指定すると,fun2string により, そのコードを再度生成することができます. 生成したコードはインデントされ, 整形されます.

仕組みはmfile2sciに似ていますが, より簡単です. 構文の変換に使用することも可能です.

txt=fun2string(asinh,'foo');
write(%io(2),txt,'(a)')
<< execstr Functions function >>

Consortium Scilab (DIGITEO)
Scilab Enterprises

Copyright (c) 2011-2012 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:25:14 CET 2011