Filter löschen
Filter löschen

How to plot trapezoids under a curve?

1 Ansicht (letzte 30 Tage)
Erwin Avendaño
Erwin Avendaño am 9 Nov. 2017
Kommentiert: Erwin Avendaño am 9 Nov. 2017
please do not use any symbolic math toolbox since I will do this in an executable later
  1 Kommentar
Erwin Avendaño
Erwin Avendaño am 9 Nov. 2017
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)

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by