Hi, I have a series of data such as 1.11134,0.01823643,0.08337726 and so on. Can anybody guide how can i plot this series of numbers using bar command. Thank you.

3 件のコメント

jonas
jonas 2018 年 7 月 17 日
What is the problem?
Ahmad Bilal
Ahmad Bilal 2018 年 7 月 17 日
i want to plot series of very small numbers using bar command. but when i try to execute the code the figure comes empty.
jonas
jonas 2018 年 7 月 17 日
編集済み: jonas 2018 年 7 月 17 日
Can you show us your code so far? If possible, attach the data as well

サインインしてコメントする。

 採用された回答

Pawel Jastrzebski
Pawel Jastrzebski 2018 年 7 月 17 日

0 投票

If you have a mix of relatively high and low values, you might want to consider using the logarithmic scale for the y-axis, i.e.:
y = [1.11134,0.01823643,0.08337726];
figure
ax = gca();
b = bar(y);
set(ax,...
'YScale','log');

2 件のコメント

Ahmad Bilal
Ahmad Bilal 2018 年 7 月 21 日
Thanks. It works
Swati Sarangi
Swati Sarangi 2020 年 12 月 4 日
Hi,
How can I set axis property for small values of the order 10^(-10)?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Discrete Data Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by