help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matrix construction.


From: Alasdair McAndrew
Subject: Re: Matrix construction.
Date: Mon, 13 Aug 2012 12:36:10 +1000

How about:

transpose(reshape(1:300,100,3))

-Alasdair

On Sun, Aug 12, 2012 at 7:10 PM, <address@hidden> wrote:
I'd been trying to construct a 3*100 matrix with elements 1-300 (i.e 1 2 ... ... 100
             101 ... ... 200
             201 ... ... 300
The program is returning this error: number of columns must match (101 !=100).
I wonder how this have happened since I rechecked the inputs.

Duncan
Sent from my BlackBerry® wireless device
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



--
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]