How to plot poisson distribution from this code

1 vue (au cours des 30 derniers jours)
Konstantinos koutsikakis
Konstantinos koutsikakis le 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');

Réponses (0)

Catégories

En savoir plus sur Networks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by