(translator=pacific, ChineseSource=pacific-20020609-7\while.html, EnglishSource=c:\matlabr12\help\techdoc\ref\while.html)
MATLAB Function Reference    
while

重覆執行指令若干次。

Syntax

Description

while 可重覆執行指令若干次。當 expression 的實數部分都不是0時,指令就會被執行。
expression 通常是下列格式

 rop 為 ==, <, >, <=, >=, or ~=.

while 的範圍為本身到相對應的 end

Examples

 eps is a tolerance used to determine such things as near singularity and rank. 起始值是machine epsilon, 為 1.0 到比下一個比1.0略大而且可以在你機器上表示出來的浮點數的差距。 可利用 while 廻圈來求之:

See Also

all, any, break, end, for, if, return, switch


 which whitebg