Problem attaching area text to segments and finding correct x crossing points

조회 수: 5 (최근 30일)
Richard Rees
Richard Rees 2020년 1월 31일
댓글: Star Strider 2020년 2월 3일
Hello everyone.
I have two problems.
1) I cannot attached the text presenting the segment areas to the peaks and troughs
2) Area the patch is not being applied properly to the intercept points on rows 2 and 3, so there is "bleeding" of patch across the XC points for lack of a better term.
I have tried to solve this myself the last few days but cannot find the answers. Attached is the fuil code that creates the elements for the graphs and some sample data. The image is what is doing with the area text knocked out. Also, the test data has had to be condense slightly more to fit on, so it will not be exactly be like the image. The other figure attached is how to would like the text above the peak and troughs of the segments.
Could someone take a fresh look at this please?
Thanks
Intergration_figure_incomplete.jpg

답변 (1개)

Star Strider
Star Strider 2020년 1월 31일
... so there is "bleeding" of patch across the XC points ...
Use linspace and interp1 to create values with a greater precision (shorter segment lengths) in the respective vectors.
  댓글 수: 2
Richard Rees
Richard Rees 2020년 2월 3일
Hi, the orginal data used to create this already had linspace and intrp1 applied to it, thats why I never reapplied it to this section.
I will try now and see how it behaves.
Star Strider
Star Strider 2020년 2월 3일
My intent is that you increase the third argument to linspace to whatever is necessary increase the resolution of that vector and the interpolated vector to satisfy the requirements.

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by