フィルターのクリア

Trouble to construct histogram stracked

1 回表示 (過去 30 日間)
Zongo Amara Mohamed Isaac
Zongo Amara Mohamed Isaac 2019 年 7 月 22 日
回答済み: the cyclist 2019 年 7 月 22 日
Morning everybody.
I've just become very familiar with Matlab, but I'm having trouble building a histogram stacked on mathlab:
on the X axis I would like to have the name of countries and the Y axis the financial and transport data
I don't know the code to use.
Please help me.
thanking you in advance.
Best regards.
attached my file

回答 (1 件)

the cyclist
the cyclist 2019 年 7 月 22 日
Take a look at the MATLAB Plot Gallery, in particular the stacked bar chart example. (I think you want a bar chart, not a histogram.) If you click on View Source underneath that plot, you will see the code that generated that plot, and you can probably adapt that to your need.
There are a number of ways to import the data. If you don't know how to do that, maybe ask a separate question, or take a look at the documentation about data import.

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by