plot curve take care of edges

조회 수: 1 (최근 30일)
ahmed youssef
ahmed youssef 2016년 12월 26일
편집: Image Analyst 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에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by