Log display problem semilogx

8 ビュー (過去 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 Center および File Exchange2-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