help-octave
[Top][All Lists]
Advanced

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

Re: Help Needed


From: Jaroslav Hajek
Subject: Re: Help Needed
Date: Fri, 20 Nov 2009 07:10:52 +0100



On Thu, Nov 19, 2009 at 7:24 PM, John Placente <address@hidden> wrote:
Sir,

I am a graduate student from the Philippines and I would like to further
know how to use the function TOEPLITZ in Octave.

Basically I have a matrix A=[1;2;3;4;5;6;7;8;9;10]

What I need to do (output) is:

B=[5,4,3,2,1;
    6,5,4,3,2;
    7,6,5,4,3;
    8,7,6,5,4;
    9,8,7,6,5;
    10,9,8,7,6]

Can you help me please and writing the code?
Thank you very much.

Respectfully,
John

B = toeplitz (A(5:10), A(5:-1:1))

hth

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

reply via email to

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