plot curve take care of edges
3 次查看(过去 30 天)
显示 更早的评论
I am plotting curve it is increased from zero to 1 with small slop and saturated at 1. I need to know "plot" command that take care of beginning and ending curve.
2 个评论
KSSV
2016-12-26
If you have x and y coordinates, plot will plot it. Plot will take care depending on your data.
回答(1 个)
Image Analyst
2016-12-26
Simply use plot(). Here's an example:
x = linspace(0, pi/2, 500);
y = 1.2*sin(x);
y(y>1) = 1;
plot(x, y, 'b-', 'LineWidth', 2);
grid on;
2 个评论
Image Analyst
2016-12-26
编辑:Image Analyst
2016-12-26
There are other ways (functions) to plot, like bar(), stem(), area(), etc. Pick whichever one gives you the appearance you like.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!