bar categorical with line
Ältere Kommentare anzeigen
Everyone,
Is there code to make a similar plot in Matlab as the following (from excel) with categorical x-axis?

I'm fairly amateur with matlab so, please be explicit.
I make it for the bars using categorical, so i get four categories of 5cm, 10, 20 and 40 but cant get the line like that?
Cheers.
2 Kommentare
Walter Roberson
am 6 Jun. 2019
If the 5, 10, 20, 40 are intended to represent x locations, then No, you have a problem of duplicate x values.
bar() can accept categorical data for the x axis. It will use the value associated with the category as the x displacement.
George Korovesis
am 6 Jun. 2019
Bearbeitet: George Korovesis
am 6 Jun. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Bar Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!