Scilab multiple functons -


i working scilab 5.4.1. there way define , invoke more 1 function in .sci file. have read in theory there possibility. know how?

this possible, define multiple functions in 1 file.

//first function function x=myfct(a, b)   x=a+b endfunction  //second function function y=myfct2(a, b)   y=a/b endfunction  //third function function y=myfct3(a, b, c)    y = myfct(a,b)    y = myfct2(y,c)    disp(y) endfunction 

see the scilab pages more information functions.

after defining above functions in file , running file once, files defined. can call them console:

>> myfct3(3,4) 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -