<< NL_I_Emission2Reception NL_I: Internet NL_I_NetworkState >>

NARVAL >> NL_I: Internet > NL_I_NetworkMatrixInit

NL_I_NetworkMatrixInit

Initialize a network matrix.

Calling Sequence

[Net] = NL_I_NetworkMatrixInit(N,B)

Arguments

N :

Network size.

B :

Buffer size.

Net :

Network matrix.

Description

NL_I_NetworkMatrixInit initializes the network matrix Net composed by N nodes that can store B packets within their buffer. An additional column provides the buffer occupancy of each node ([buffer|buffer occupancy]).

Examples

n=100;//network size
bs=10;//constant buffer size
network=NL_I_NetworkMatrixInit(n,bs);//application of NL_I_NetworkMatrixInit
network(1:10,:)//network state of the first 10 nodes
//[buffer|buffer occupancy]

Report an issue
<< NL_I_Emission2Reception NL_I: Internet NL_I_NetworkState >>