changing x values when using histcounts

3 views (last 30 days)
sani on 19 Mar 2020
Edited: sani on 20 Mar 2020
Hi all
I'm trying present a spectrum in matlab, and I want to calibrate the x axis to the correct values (they losts when I using histcounts I belive). the lefe peak need to be 511 and the right one in 1460.
the scipt I'm using for this spectrum is:
[X,edges] = histcounts(,16384);
Z = histcounts(Ge_energy,edges);
hold on
xlabel('Energy [keV]')

Answers (0)


Find more on Data Distribution Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!