필터 지우기
필터 지우기

i want to set x-axis to be in Pico seconds , how to do that

조회 수: 2 (최근 30일)
Hagar Hendy
Hagar Hendy 2022년 12월 2일
댓글: Hagar Hendy 2022년 12월 2일
v

답변 (1개)

Image Analyst
Image Analyst 2022년 12월 2일
Multiply your x by 10^12.
bar(x*1e12, y, 1);
xlabel('Time Difference in picoseconds');
  댓글 수: 3
Image Analyst
Image Analyst 2022년 12월 2일
I said to use bar, not histogram. If the data is a histogram, then use histcounts to get the y data (counts) or else pass 'Edges' in to histogram
x = (tin-tex)*(-1.433426304e-12)
[counts, edges] = histcounts(x);
ylabel('number of Occurrences', 'FontSize', 15);
xlabel('Time Difference in picoseconds' 'FontSize', 15);
bar(edges(1:end-1), counts);
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Hagar Hendy
Hagar Hendy 2022년 12월 2일
thanks a lot, i am sorry, i didn't know the rules

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by