"Galam Lee" <firstname.lastname@example.org> wrote in message news:email@example.com... >> A screen shot of mine: >> >> >> for i=1:10 >> A=[1,2,3;4,5,6]; >> B=A*i; >> eval(['result' num2str(i) '=B;']); >> end >> >> >> >> % Bruno > > I find the cemi-colon behind B;. > I really apreciate your reply!
Glad you found that, but IMO your code still has a problem. As Bruno said, you should NOT use EVAL in this way. Use one of the alternatives given in question 6 in the Programming section of the FAQ instead.