[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing gallery function
From: |
Clark Dunson |
Subject: |
Re: Testing gallery function |
Date: |
Thu, 19 Jun 2014 09:41:52 -0700 |
>> x=gallery('triw',5,3,2)
x =
1 3 3 0 0
0 1 3 3 0
0 0 1 3 3
0 0 0 1 3
0 0 0 0 1
On Jun 19, 2014, at 9:38 AM, Rik wrote:
> 6/19/14
>
> Octave is not generating the correct matrix for gallery ('triw'). It is
> always all zeros. I think it is as simple as swapping triu for tril in the
> function, but I need confirmation. Could someone run this test code under
> Matlab?
>
> x = gallery ('triw', 5, 3, 2)
>
> Thanks,
> Rik
>