Path: news.mathworks.com!not-for-mail
From: "ali kucur" <kobay000@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: An array problem
Date: Sun, 16 Dec 2012 17:20:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <kakvsl$5oj$1@newscl01ah.mathworks.com>
References: <kakneh$cjo$1@newscl01ah.mathworks.com> <kakq15$jgd$1@newscl01ah.mathworks.com>
Reply-To: "ali kucur" <kobay000@gmail.com>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1355678421 5907 172.30.248.46 (16 Dec 2012 17:20:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Dec 2012 17:20:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3925930
Xref: news.mathworks.com comp.soft-sys.matlab:784911

"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 ?