We want to create a 20x20 circulant symmetric matrix. Please help!

The whole matrix will consist of 1 and 0. If the nodes are connected its going to be 1, if the nodes are not connected its going to be 0.
For example, the 4x4 matrix version looks like this : row1:(0 1 0 0) row2:(1 0 1 0) row3:(0 1 0 1) row4:(0 0 1 0) We would like to generate the 20x20 of this please!!

1 Comment

There are tools on the FEX to generate circulant matrices. Why not look there?

Sign in to comment.

Answers (0)

Categories

Asked:

on 13 Dec 2013

Edited:

on 13 Dec 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!