필터 지우기
필터 지우기

How to plot histogram from two vectors

조회 수: 5 (최근 30일)
Martin Park
Martin Park 2013년 10월 9일
댓글: Daniela Rodríguez Castro 2020년 2월 19일
Can someone help me how can I plot a histogram when I have two vectors where one vector is the x values say x=[1 2 3 4 5] and y is the count of each x y=[5 3 2 6 1]

채택된 답변

Wayne King
Wayne King 2013년 10월 9일
You want to use bar()
x = 1:5;
y = [5 3 2 6 1];
bar(x,y)
  댓글 수: 1
Daniela Rodríguez Castro
Daniela Rodríguez Castro 2020년 2월 19일
how can I do the same but with the histogram function?

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

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