How to plot trapezoids under a curve?

조회 수: 4 (최근 30일)
Erwin Avendaño
Erwin Avendaño 2017년 11월 9일
댓글: Erwin Avendaño 2017년 11월 9일
please do not use any symbolic math toolbox since I will do this in an executable later
  댓글 수: 1
Erwin Avendaño
Erwin Avendaño 2017년 11월 9일
a=str2double(get(handles.edit7,'string'));
b=str2double(get(handles.edit6,'string'));
xx=a:0.01:b;
f=inline(get(handles.edit1,'string'));
y1=f(xx);
axes(handles.axes3);
plot(xx,y1,'r*','LineWidth',3)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by