Next:
Plot
Up:
A Quick Guide to
Previous:
Keywords
Flow Control
In addition to the normal control structures Matlab has, Shang provides
unless-end
,
until-end
,
do-while
, and and
do-until
statements. For example
s = 0; k = 1; n = 10000; do s += 1 / k++; while k < n; // or "until k >= n;"
oz 2009-12-22