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:
Symmetrical binary matrices: a help from an expert

Subject: Symmetrical binary matrices: a help from an expert

From: Paulo Guimaraes

Date: 27 Jan, 2011 21:33:04

Message: 1 of 1

Hi guys,
It is probably a silly problem and any matlab specialist should be able to help. I were not able to solve that.

I need to generate a random matrix with the following properties:

1) binary
2) symmetrical
3) diagonal is zero (r(i,i)=0)

example

r=[0,1,1,0;1,0,0,1;0,0,0,1; 0,1,1,0]

thank you so much

P.

Tags for 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