Your ImgR will be an array. What does Predicted_Function do with array inputs? If it returns an array, then you are expecting to store that array in the single location NewFrames(c,r).
Perhaps you want,
NewFrames(c,r).cdata = NewFrame;
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!