2012年11月9日 星期五

Scilab fundamentals 11 - The select statement

    I have a dream (but I’m not Obama). Someday, a beauty asks me: coffee, tea, or me? When this dream comes true, I have three choices, and I know how to select the best one. Now we learn how to program my dream by the select statement.


In the above example, the variable n is defined as my selection. Consequently, the select statement responses the answer with respect to the value of n.

沒有留言:

張貼留言