How to plot a function
显示 更早的评论
Hello,
I need to plot a graph with 
where x is between
and
,
y is here between
and
,
Can you help me with it?
Thanks
采纳的回答
更多回答(1 个)
You may use fplot
figure, hold on
fplot(@(x)x.^-3,[1 1e5])
fplot(@(x)x.^-2.8,[1 1e5])
% use bi-logaritmic scale
set(gca,'YScale','log','xScale','log')
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

