Yours doesn't even work. You aren't assigning data[1]. Your use of the array for data[] is also slower than individual variables.
The OP can't even code this function and you expect him to add in foreach?
Foreach is easier to use, so yeah I'm sure he will understand it earlier than for(). And there won't be any different if you use two variables or double cell array in that small loop.