필터 지우기
필터 지우기

Mulitple Histogram plot with bars

조회 수: 3 (최근 30일)
Anthony
Anthony 2011년 8월 27일
I am trying to create two histograms on a plot. I tried this
[n, xout] = hist(data(1:179396,1));
bar(xout, n, 'barwidth', 1, 'basevalue', 1); hold;
Current plot held
[n2, xout2] = hist(data(1:179484,1));
bar(xout2, n2, 'barwidth', 1, 'basevalue', 1);
set(gca, 'XTick', 0:20:1000)
set(gca,'YScale','log')
and I got the "Index exceeds matrix dimensions" error.
I was wondering if anyone could help me. I know it should give that error. but I was wondering if there is a way to get around this.
  댓글 수: 3
Anthony
Anthony 2011년 8월 27일
thanks Oleg.
Chaowei Chen
Chaowei Chen 2011년 8월 27일
I didn't get errors from your code! Hooray?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by