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

 Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 19 de Nov. de 2019

0 votos

a=5;
b=2;
x=0.0001:1000000;
y=a*x+b;
figure
semilogx(x,y)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 19 de Nov. de 2019

Respondida:

el 19 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by