Log display problem semilogx

조회 수: 10 (최근 30일)
Adrian Grzesik
Adrian Grzesik 2019년 11월 19일
답변: KALYAN ACHARJYA 2019년 11월 19일
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

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 19일
a=5;
b=2;
x=0.0001:1000000;
y=a*x+b;
figure
semilogx(x,y)

추가 답변 (0개)

카테고리

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