Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reshape in Row First
Date: Tue, 4 Aug 2009 15:51:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <h59ld6$ehn$1@fred.mathworks.com>
References: <ef2cda9.-1@webx.raydaftYaTP> <ef2cda9.0@webx.raydaftYaTP>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249401062 14903 172.30.248.35 (4 Aug 2009 15:51:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 4 Aug 2009 15:51:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1915469
Xref: news.mathworks.com comp.soft-sys.matlab:560745

us <us@neurol.unizh.ch> 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

Hi there I was wondering is there any way of reshaping row by row when you have more than one row, for example i have data:

'512'	'487'	'761'	'503' '513'	'484'	'762'	'495' '514'	'481'.... in a 1x185 array and I want it to go

512 487 761 503
513 484 762 495
514 481 ...  in a 4x45number of rows

but i can only get 

512	495	761	483
487	512	491	765
761	484	515	495
503	765	482	513
513	478	764	484  in a 4x45
484
762
495
514
481

any help would be amazing 

many thanks Chris