MATLAB, draw tolerances in a plot similar to errorbar in matlab, but perpendicular to points in the curve.
조회 수: 1 (최근 30일)
이전 댓글 표시
I have two arrays time and output, and I want the tolerances to be shown on a plot. I know that errorbar(time,output,err) does this in matlab, but I want the bars to be perpendicular to the point in the curve. errorbar only provides horizontal or vertical bars.
댓글 수: 0
답변 (1개)
John D'Errico
2023년 11월 4일
편집: John D'Errico
2023년 11월 4일
You can want code to do as you want, but it won't help. And there is no version of errorbar that will do as you want. This means you will need to write the code yourself.
That means you need to compute the normal vector to the curve at any point.
Then compute the length of those error bars. I'm not entirely sure how you have chosen to compute such a perpendicular error bar, but this is your project, not mine.
Finally, plot them yourselves, using your own code. You can use tools like patch at this point.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!