Is there a semilogx function for symbolic functions?
12 次查看(过去 30 天)
显示 更早的评论
Like there is fplot for plot, is there a function that replaces semilogx, semilogy, loglog for symbolic functions, because semilogx, semilogy, and loglog aren't working for my symbolic functions.
Please share, thank you.
0 个评论
回答(1 个)
Star Strider
2018-4-13
Use the set function with fplot to adjust the axis scaling:
syms x(t)
x(t) = exp(-2*t);
figure(1)
fplot(x, [0 10])
title('Linear x')
figure(2)
fplot(x, [0 10])
set(gca, 'YScale','log')
title('Semilogy x')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!