How to plot poisson distribution from this code

1 Ansicht (letzte 30 Tage)
Konstantinos koutsikakis
Konstantinos koutsikakis am 5 Nov. 2020
Hi I need help. How plot the probability distribution from this code
%Random Graph
% N number of nudes
% V = edges
% p possibility
N = input('no. of Nodes');
p = input('Give the possibility');
% Make adjacency matrix
idx = find(triu(ones(N),1));
V = rand(((N-1)*N)/2,1)<p;
A = zeros(N);
A(idx) = V;
A = A + triu(A,1)';
matrix = full(A)
% create and plot undirected graph object
figure
g = graph(A);
h = plot(g,'Layout','circle');

Antworten (0)

Kategorien

Mehr zu Networks 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