Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reshape in Row First
Date: Fri, 7 Mar 2014 03:43:08 +0000 (UTC)
Organization: National Institute of Technology
Lines: 27
Message-ID: <lfbf8c$bq0$1@newscl01ah.mathworks.com>
References: <ef2cda9.-1@webx.raydaftYaTP> <ef2cda9.0@webx.raydaftYaTP> <lfbev1$b74$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: rubyext-02-ls.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1394163788 12096 172.20.102.178 (7 Mar 2014 03:43:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 7 Mar 2014 03:43:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3881887
Xref: news.mathworks.com comp.soft-sys.matlab:810406

"Miltan Chowdhury" wrote in message <lfbev1$b74$1@newscl01ah.mathworks.com>...
> "us" wrote in message <ef2cda9.0@webx.raydaftYaTP>...
> > weihua xiong:
> > <SNIP small <reshape> problem...
> > 
> > one of the solutions
> > 
> >      m=[1,2,3,4
> >         5,6,7,8]
> >      mr=reshape(m.',1,[])
> > 
> > us
> use this function code
> function y=reshapee(a,b,c)%%matrix reshape row wise
> y=zeros(b,c);
> for i=1:b
>     for j=1:c
>         y(i,j)=a(((i-1)*c)+j)
>     end
> end
> 
>     
>         
> 
> 
>     
>