How to simulate CSMA-CA algorithm in MATLAB? There are several nodes in the network with its own state. For example, some node may be sending the data at the start of the simulation, some other nodes may be waiting to send the data, some nodes may be idle, some nodes may be waiting for ACK, etc. When some node is sending the data, at the same time the other nodes may be changing the state. Computer programs run sequentially. How it is possible to update the states of other nodes or back-off counters etc. at the same time when the transmission of data of a node is going on?
Of course, this is easy in NS2. But I am not at all familiar with NS2.