|
"Steven Lord" <slord@mathworks.com> wrote in message <hrmiqg$bne$1@fred.mathworks.com>...
>
> "John Dim" <mitsoujohn@yahoo.com> wrote in message
> news:hrm9jc$ecj$1@fred.mathworks.com...
> > Hello,
> >
> > lets say that I have the very simple loop
> >
> > for i = 1:10
> >
> > s(i) = i+1
> >
> > end
> >
> > why do I get an error?
> > All I want is to get: s1=2, s2=3 ..etc.
> > Is there any other way that I can put numbering on s values?
>
> Yes, but you should not do this. See Q4.6 in the newsgroup FAQ for a
> discussion of this issue.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>
Thanks Steve, very useful I'll use structures.
cheers I appreciate your help.
John D.
|