plot curve take care of edges

3 次查看(过去 30 天)
ahmed youssef
ahmed youssef 2016-12-26
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
KSSV 2016-12-26
If you have x and y coordinates, plot will plot it. Plot will take care depending on your data.
ahmed youssef
ahmed youssef 2016-12-26
someone shows me command other than plot to show how it rise and saturated

请先登录,再进行评论。

回答(1 个)

Image Analyst
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 个评论
ahmed youssef
ahmed youssef 2016-12-26
someone shows me command other than plot to show how it rise and saturated
Image Analyst
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 CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by