Loglog plot with data value = 0

조회 수: 17 (최근 30일)
ZiQian Lee
ZiQian Lee 2020년 4월 15일
답변: Ameer Hamza 2020년 4월 15일
How to plot the data below:
x = [10^-1,10^-2,10^-3,10^-4,10^-5,10^-6,10^-7];
y = [ 0, 10^5, 10^6, 10^7,10^9,10^10,10^13];
loglog(x,y,'ko','MarkerFaceColor','k')
The first y data is not plotted.......
Can anyone help?

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 4월 15일
0 = 10^{-Inf}
So the 0 will appear at -infinity in the plot. MATLAB can only display finite axis.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by