Log display problem semilogx

10 Ansichten (letzte 30 Tage)
Adrian Grzesik
Adrian Grzesik am 19 Nov. 2019
Beantwortet: KALYAN ACHARJYA am 19 Nov. 2019
Hi i want to show graph with log scale on x . this is my code:
a=5;
b=2;
x=0.0001:1000000;
y=@(x) ax+b;
figure
semilogx(x,y)
hold off
and this is my error:
Error using semilogx
Invalid data argument.
Error in Untitled1 (line 6)
semilogx(x,y)
i read how use semilogx and have no idea where i make mistake

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 19 Nov. 2019
a=5;
b=2;
x=0.0001:1000000;
y=a*x+b;
figure
semilogx(x,y)

Weitere Antworten (0)

Kategorien

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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by