how to draw Bipartite Matrices and Projection Matrices.

2 Ansichten (letzte 30 Tage)
HASAN JAHANIFAR
HASAN JAHANIFAR am 11 Jul. 2022
Kommentiert: HASAN JAHANIFAR am 11 Jul. 2022
Hi
could you please let me know how can I draw the graphs like attached file?

Akzeptierte Antwort

Karim
Karim am 11 Jul. 2022
such figures can be generated with the spy command. See below for an attempt to produce the top left figure using a bit of random data
A = zeros(450,450);
B = rand(450,800) < 0.01;
C = zeros(800,800);
M = [A B; B',C];
figure
spy(M)
  1 Kommentar
HASAN JAHANIFAR
HASAN JAHANIFAR am 11 Jul. 2022
Thank you. could you please let me know, if I have a bipartite matrice can I draw such figure?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by