"Roger Stafford" wrote in message <kakq15$jgd$1@newscl01ah.mathworks.com>...
> "ali kucur" <kobay000@gmail.com> wrote in message <kakneh$cjo$1@newscl01ah.mathworks.com>...
> > A=[1 2 3 4 5 6 7 8];
> > satir=4;
> > sutun=length(A)/4;
> > >> B=reshape(A, sutun, satir);
> > >> for (i=1:sutun)
> > d(i)=B(i,:);
> > end
> > ans=[d(i)]
> >
> >
> > I m getting the error shown below, please help me folks.
> >
> > In an assignment A(I) = B, the number of elements in B and I must be the same.
> - - - - - - - - -
> Your error message is telling you what is wrong. You are trying to stuff four numbers into a single entry of the 'd' array and they won't fit!
>
> Roger Stafford
i wonder can you tell me what should it like be ?
> "ali kucur" <kobay000@gmail.com> wrote in message <kakneh$cjo$1@newscl01ah.mathworks.com>...
> > A=[1 2 3 4 5 6 7 8];
> > satir=4;
> > sutun=length(A)/4;
> > >> B=reshape(A, sutun, satir);
> > >> for (i=1:sutun)
> > d(i)=B(i,:);
> > end
> > ans=[d(i)]
> >
> >
> > I m getting the error shown below, please help me folks.
> >
> > In an assignment A(I) = B, the number of elements in B and I must be the same.
> - - - - - - - - -
> Your error message is telling you what is wrong. You are trying to stuff four numbers into a single entry of the 'd' array and they won't fit!
>
> Roger Stafford
i wonder can you tell me what should it like be ?