I rewrote my C code program into Scilab. When executation, however, I found there are some errors about variables undefined.
After some check, I figured out that might be the problem of "static local variables".
Here are 2 messages I found in Scilab newsgroup:
static local variables in Scilab
I don't want to use global variable declaration. It's not a good news for me that I can not declare static local variables in Scilab... :-(