Trapezium and Simpson's Rule, plotting graphically
조회 수: 1 (최근 30일)
이전 댓글 표시
I have 3 tasks, to plot the rectangle, trapezium and simpson's rule.
For the rectangle rule, I've produced an array of x0:h:x1 where x0 and x1 are the upper and lower limits, and h is the strip width. I used a simple histogram method here, but I'm stuck for how to produce trapeziums, and how to then change the straight lines of the trapeziums to parabolas to suit the Simpson's rule.
Any help would be greatly appreciated.
I have another question concerning how to add numerical data to a subplot (4 graphs in a 2x3 array with 3 and 6 empty for the data I require.) I'll put this in a question of it's own too as it may be clearer.
댓글 수: 0
답변 (1개)
Sean de Wolski
2012년 4월 19일
doc trapz %or cumtrapz
What have you done thus far for simpson's rule?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!