Thanks for the quick response, Yonathan,
Due to the font problem on my PC, some characters are shown as broken state. Wrong line numbers might come from the same reason. That's why I guess the correct code. (It was right^^) Thanks, Yonathan.
------------------------------------------
"ind???1" may be changed to "ind+nSamples-1" or somethingin line 15 & 26, right ?