Dear Mohsn... Thank you for your comments.. I appreciate what you mentioned... But actually my student tried to install the NS2.. but after long tials he faced difficuilties in making NS2 to be available for his work. For that reason I need to find the certainity in working with MATLAB. Please if you have any materials in this aspect I will appreciate your help.