The load / store instructions and the loop counter were geared for processing a single byte at a time. load/store指令和循环计数器(LC)的目标是一次处理一个字节。
Finally, the loop counter ( $ I ) is incremented, and the loop continues. 最后,循环计数器(LC)($i)增加,循环继续。
Code that changes the loop counter in the body of the loop is confusing and error prone. 在循环体中改变循环计数器(LC)的代码会让人感到迷惑,也容易犯错。
Normally, variables are best named by their use ( like firstName or title ), but as this variable is essentially a loop counter, using single letters is also fine. 变量一般最好根据用途命名(如firstName或rtitle),不过由于这个变量基本上是一个循环计数器(LC),也可使用单个字母。
Although MATLAB does allow you to use a variable of the same name as the loop counter within a loop, this is not a recommended practice. 循环变量只能作为右值(即可读不可写),当然你还可以在循环中使用一个名称和循环变量一样的变量,但是这种做法并不提倡。