changing x values when using histcounts

2 ビュー (過去 30 日間)
sani
sani 2020 年 3 月 19 日
編集済み: sani 2020 年 3 月 20 日
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(Ge_table.energy,16384);
Z = histcounts(Ge_energy,edges);
semilogy(X,'r')
hold on
semilogy(Z,'b')
xlabel('Energy [keV]')
ylabel('Counts')

回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by