Plotting very small values using bar command

8 次查看(过去 30 天)
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 个评论
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
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');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by