Borrar filtros
Borrar filtros

Trouble to construct graph

3 visualizaciones (últimos 30 días)
Zongo Amara Mohamed Isaac
Zongo Amara Mohamed Isaac el 22 de Jul. de 2019
Comentada: dpb el 22 de Jul. de 2019
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 comentario
dpb
dpb el 22 de Jul. de 2019
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

Iniciar sesión para comentar.

Respuestas (1)

Mario Chiappelli
Mario Chiappelli el 22 de Jul. de 2019
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.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by