How to write code in matlab

Hi,
I need a help...I don't understand, how to the write this code..
an incoming packet is inserted into Q1 if it has not been sent by the node before (i.e., its unique ID is not in Q2) and it was sent from a lower node (i.e., a node with a larger depth, dp > dc). If a packet currently in Q1 is received again during the holding time, the packet will be removed from Q1 if the new copy is from a node with a smaller or similar depth (dp ≤ dc), or its scheduled sending time will be updated if the new copy is from a lower node (dp > dc). After a node sends out a packet as scheduled, the packet is removed from Q1 and its unique ID inserted into Q2.
please help me..and sorry my english

2 Commenti

I am not getting the question.
Amrita Datta
Amrita Datta il 16 Mar 2018
Q1 and Q2 is a 2x2 matrix. if Q1 find the common element in Q2 than drop the same row in Q1. if Q1 receives the new element during the holding time, this row again drops if dp<=dc. or if dp>dc this condition is satisfied, these new elements copy to Q2.

Risposte (0)

Questa domanda è chiusa.

Richiesto:

il 16 Mar 2018

Chiuso:

il 16 Mar 2018

Community Treasure Hunt

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

Start Hunting!

Translated by