Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matriks

Subject: Matriks

From: Tava Eurdanceza

Date: 9 Jun, 2010 05:44:12

Message: 1 of 3

Hello guys...
I have a problem.
I want to create matriks :

a 0 0 0 0 0 0 0 ... 0 0 0 0 0 d c b
b a 0 0 0 0 0 0 ... 0 0 0 0 0 0 d c
c b a 0 0 0 0 0 ... 0 0 0 0 0 0 0 d
d c b a 0 0 0 0 ... 0 0 0 0 0 0 0 0
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
0 0 0 0 0 0 0 0 ... 0 0 d c b a 0 0
0 0 0 0 0 0 0 0 ... 0 0 0 d c b a 0
0 0 0 0 0 0 0 0 ... 0 0 0 0 d c b a

and matriks
a 0 0 0 0 0 0 ... 0 0 0 d 0 c 0 b 0
0 a 0 0 0 0 0 ... 0 0 0 0 d 0 c 0 b
b 0 a 0 0 0 0 ... 0 0 0 0 0 d 0 c 0
0 b 0 a 0 0 0 ... 0 0 0 0 0 0 d 0 c
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
0 0 0 0 0 0 0 ... d 0 c 0 b 0 a 0 0
0 0 0 0 0 0 0 ... 0 d 0 c 0 b 0 a 0
0 0 0 0 0 0 0 ... 0 0 d 0 c 0 b 0 a

can you help me?

Subject: Matriks

From: John D'Errico

Date: 9 Jun, 2010 10:32:05

Message: 2 of 3

"Tava Eurdanceza" <tava_cute@yahoo.com> wrote in message <hun9nc$bb4$1@fred.mathworks.com>...
> Hello guys...
> I have a problem.
> I want to create matriks :
>
> a 0 0 0 0 0 0 0 ... 0 0 0 0 0 d c b
> b a 0 0 0 0 0 0 ... 0 0 0 0 0 0 d c
> c b a 0 0 0 0 0 ... 0 0 0 0 0 0 0 d
> d c b a 0 0 0 0 ... 0 0 0 0 0 0 0 0
> ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
> 0 0 0 0 0 0 0 0 ... 0 0 d c b a 0 0
> 0 0 0 0 0 0 0 0 ... 0 0 0 d c b a 0
> 0 0 0 0 0 0 0 0 ... 0 0 0 0 d c b a
>
> and matriks
> a 0 0 0 0 0 0 ... 0 0 0 d 0 c 0 b 0
> 0 a 0 0 0 0 0 ... 0 0 0 0 d 0 c 0 b
> b 0 a 0 0 0 0 ... 0 0 0 0 0 d 0 c 0
> 0 b 0 a 0 0 0 ... 0 0 0 0 0 0 d 0 c
> ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
> 0 0 0 0 0 0 0 ... d 0 c 0 b 0 a 0 0
> 0 0 0 0 0 0 0 ... 0 d 0 c 0 b 0 a 0
> 0 0 0 0 0 0 0 ... 0 0 d 0 c 0 b 0 a
>
> can you help me?

Well, you can always help yourself...

http://www.mathworks.com/matlabcentral/fileexchange/22858-circulant-matrix

John

Subject: Matriks

From: Jos (10584)

Date: 9 Jun, 2010 11:00:21

Message: 3 of 3

"Tava Eurdanceza" <tava_cute@yahoo.com> wrote in message <hun9nc$bb4$1@fred.mathworks.com>...
> Hello guys...
> I have a problem.
> I want to create matriks :
>
> a 0 0 0 0 0 0 0 ... 0 0 0 0 0 d c b
> b a 0 0 0 0 0 0 ... 0 0 0 0 0 0 d c
> c b a 0 0 0 0 0 ... 0 0 0 0 0 0 0 d
> d c b a 0 0 0 0 ... 0 0 0 0 0 0 0 0
> ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
> 0 0 0 0 0 0 0 0 ... 0 0 d c b a 0 0
> 0 0 0 0 0 0 0 0 ... 0 0 0 d c b a 0
> 0 0 0 0 0 0 0 0 ... 0 0 0 0 d c b a
>
> and matriks
> a 0 0 0 0 0 0 ... 0 0 0 d 0 c 0 b 0
> 0 a 0 0 0 0 0 ... 0 0 0 0 d 0 c 0 b
> b 0 a 0 0 0 0 ... 0 0 0 0 0 d 0 c 0
> 0 b 0 a 0 0 0 ... 0 0 0 0 0 0 d 0 c
> ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
> 0 0 0 0 0 0 0 ... d 0 c 0 b 0 a 0 0
> 0 0 0 0 0 0 0 ... 0 d 0 c 0 b 0 a 0
> 0 0 0 0 0 0 0 ... 0 0 d 0 c 0 b 0 a
>
> can you help me?

TOEPLITZ and HANKEL might get you started, for instance using

abcd = [11 2 30 44]
Nzeros = 5 ;

part1 = [toeplitz(abcd,zeros(Nzeros,1)) triu(toeplitz([0 fliplr(abcd(2:end))]))]

Jos

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us