DSPRelated.com
Forums

Normalized frequency

Started by errabahf July 17, 2011
Hi ALL

I will really appreciate any help or suggestion

i am new to MAtlab , i was ploting the data using a code that was making the average of set of data but the plot was not that good of presentation.

so instead of average i need to do the y axis to represent how frequently does the number 1 for example appear in a list of data 1 2 1 5 4 6( this just an example

my date is like a row of six values
and 1000 rows

so somting like this

117.72 136.39 52.73 96.76 156.36 94.27
119.13 135.79 52.41 91.48 144.69 100.33
115.18 134.53 55.63 94.16 144.10 89.77
113.90 133.68 57.78 93.17 144.32 88.89
116.24 132.76 56.11 95.66 145.57 89.36
119.90 138.86 52.18 93.39 139.84 87.58
121.07 142.36 51.17 95.30 139.06 95.94
121.95 141.08 46.76 95.93 149.03 95.01
127.15 144.28 44.22 89.80 147.59 102.48
125.30 137.06 45.63 91.21 149.71 95.54
128.00 143.48 45.77 94.52 149.70 95.43
116.15 136.44 50.19 101.81 149.63 94.24
114.54 134.55 52.34 102.08 154.93 92.84
.
.
.
does any body know how to do the normalized frequency
i can have my data be represented this way if it s easier to get the frequency of each value of 0 like here its 17.72161220856759

0 117.72161220856759
1 136.39299279636268
2 52.73343449558927
3 96.75975056263192
4 156.35518108937424
5 94.2685004714038

0 119.129
1 135.788
2 52.411
3 91.475
4 144.690
5 100.325

0 115.180
1 134.534
2 55.632
3 94.1643
4 144.099
5 89.7662

Thank you so much