Log display problem semilogx
1 view (last 30 days)
Show older comments
Adrian Grzesik
on 19 Nov 2019
Answered: KALYAN ACHARJYA
on 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
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!