Loglog plot with data value = 0

17 Ansichten (letzte 30 Tage)
ZiQian Lee
ZiQian Lee am 15 Apr. 2020
Beantwortet: Ameer Hamza am 15 Apr. 2020
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?

Antworten (1)

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by