필터 지우기
필터 지우기

display X and Y values on respective axis with bar function

조회 수: 1 (최근 30일)
Laura
Laura 2012년 9월 3일
Hey, I'm having trouble plotting a graph using the bar function. I have 2 vectors X and Y and as a result of:
bar(X,Y,0.85,'grouped');axis([0 23 0 1]);grid minor;hold on;
I obtain a bar for every value of Y that matches X, but I'd like to display all the X and Y components on their axes.
For the X axis im only printing the first value of the X vector. I'd also like to display the grid correctly, because not always it is displayed.. (Horizontal grid for intervals of 1, vertical grid for intervals of 0.05).
Any ideas how to fix this?
Thanks!

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by