I want's to create M-Block for histogram in a system generator(simulink).For that I want to write a matlab program for histogram without using hist function.how i will proceed.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Xw = abs(fft(Xt));
ki = hist(Xw,L)
Here
L=10 and
Xw=Columns 1 through 9
2.6745 0.8621 0.4602 0.9763 0.6610 0.6980 0.7825 0.7614 1.7243
Columns 10 through 18
1.0339 0.9769 0.6929 0.6780 0.6440 0.8165 0.5164 0.5907 0.9667
Columns 19 through 27
1.9969 0.5209 1.3216 1.5879 1.7889 0.5631 0.7341 0.7238 1.5995
Columns 28 through 36
1.0439 1.3563 0.7253 0.3909 1.2436 0.3150 1.0637 1.3090 0.5792
Columns 37 through 45
upto 1000 samples.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!