- #1
mmmd_yaseen
- 3
- 0
Hi All,
I just need your small help in Matlab programming of histogram and PDF
Task to create and reproduce histogram and Probability distribution function for a given data sample (Inter packet arrival times).please see the attachment for the data (TV_80_port_testing.dat) and appropriate graph (Port80_IPTV.jpg) . Say I have 50000 entries in a DAT file with three columns of data 1.port no 2 and 3 are inter packet times of a subsequent packet.I have to plot and analyse the data using the statistical methodology. I need your help in inputting my value inside the code.
I have to reproduce the same plot as in the attachment(Port80_IPTV.jpg). Below are the code I have just written.
load TV.dat
x=TV(:,2);
[a,b] =hist(x,-2:30);
plot(b,a/3/sum(a),'LineWidth',1.5);[/COLOR][/FONT]
Please see the attachment of "myplot" of the above code.
Note: I couldn't attach my .DAT file here.Please let me know if you need it . I'll send it through email.
I am not sure of how to specify the number of bins and range for the attached data and its graph.
Please help me in reproducing the graph which are at-least should be closest resemblance in the attachment (Port80_IPTV) for the PDF.Once I know what iam doing and get a full confidence ,I will proceed further with my other cases and it's all about in how to start with it and i struggling in it.
Regards
Yaseen
I just need your small help in Matlab programming of histogram and PDF
Task to create and reproduce histogram and Probability distribution function for a given data sample (Inter packet arrival times).please see the attachment for the data (TV_80_port_testing.dat) and appropriate graph (Port80_IPTV.jpg) . Say I have 50000 entries in a DAT file with three columns of data 1.port no 2 and 3 are inter packet times of a subsequent packet.I have to plot and analyse the data using the statistical methodology. I need your help in inputting my value inside the code.
I have to reproduce the same plot as in the attachment(Port80_IPTV.jpg). Below are the code I have just written.
load TV.dat
x=TV(:,2);
[a,b] =hist(x,-2:30);
plot(b,a/3/sum(a),'LineWidth',1.5);[/COLOR][/FONT]
Please see the attachment of "myplot" of the above code.
Note: I couldn't attach my .DAT file here.Please let me know if you need it . I'll send it through email.
I am not sure of how to specify the number of bins and range for the attached data and its graph.
Please help me in reproducing the graph which are at-least should be closest resemblance in the attachment (Port80_IPTV) for the PDF.Once I know what iam doing and get a full confidence ,I will proceed further with my other cases and it's all about in how to start with it and i struggling in it.
Regards
Yaseen