필터 지우기
필터 지우기

Creating a histogram

조회 수: 1 (최근 30일)
John
John 2012년 3월 31일
Hi,
Is the correct syntax to create a histogram of data X with 22 bins the following
hist(X,22)
When I type it noting happens?

채택된 답변

Wayne King
Wayne King 2012년 3월 31일
That is correct. When you say "nothing happens", do you mean that the line of code executes, but no figure is produced? If so, try
clf;
X = randn(1000,1);
hist(X,22);
  댓글 수: 3
John
John 2012년 3월 31일
Got it working, thanks
Wayne King
Wayne King 2012년 3월 31일
yea, sorry about that! I fixed that :)

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

추가 답변 (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