
overlapped bar charts up and down
조회 수: 2 (최근 30일)
이전 댓글 표시
I would like to plot a bar chart for data [2,3,4,5] and [-3,-2,-1,-4] on up and down as attached.
댓글 수: 0
답변 (1개)
dpb
2017년 4월 19일
See if one of the following is what you're looking for...
subplot(3,1,1),bar(data)
subplot(3,1,2),bar(data.')
subplot(3,1,3),bar(data(:,1),0.3)
hold on
bar(data(:,2),0.3,'facecolor','y')
results in

Choose your poison...
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!