Plotting very small values using bar command

조회 수: 8 (최근 30일)
Ahmad Bilal
Ahmad Bilal 2018년 7월 17일
댓글: Swati Sarangi 2020년 12월 4일
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');
  댓글 수: 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개)

카테고리

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