I want to simulate WSN which use compressive sensing in transmissions. Unfortunately I do not know , how I should implement compressive in this simulation?
If you use NetSim, you can just change the packet size based on the output of your compression algorithm. This should get you the necessary result. I dont know about NS-2, in fact no body uses ns2 anymore, I think.