Trouble to construct graph
조회 수: 1 (최근 30일)
이전 댓글 표시
Morning everybody.
I've just become very familiar with Matlab, but I'm having trouble building a graph (histogram):
on the X axis I would like to have the name of countries and the Y axis the food products consumption by sector.
I don't know the code to use
thanking you in advance.
Best regards.
attached my file
댓글 수: 1
dpb
2019년 7월 22일
The label properties are XTickLabel and YTickLabel
If you would use categorical variables for the X, the labels would show up automagically--see the example at
doc histogram
답변 (1개)
Mario Chiappelli
2019년 7월 22일
Check out this documentation:
Most of the time if you google "Matlab your issue", official documentation from mathworks will show up and give you everything you need to know.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!