Is there a matlab command to Extract function of a plot
조회 수: 13 (최근 30일)
이전 댓글 표시
Hello All
Sorry if this is posted before. I have attempted to search and read through as many posts as possible, to find a post that relates to my issue. Basically I have a set of x y z data, which I have managed to produce a surface and contour plot from. Now I need to generate a function that closely describes the plot that I have.
Therefore my questions is this: Is there a command or method within matlab that allows you to generate or extract the function of a plot from the x y and z data? Thank you
Kind Regards
Kush
댓글 수: 0
답변 (3개)
Walter Roberson
2011년 9월 12일
No, and there cannot be: there is always a (literally) infinite number of different functions that match any finite set of data.
The Curve Fitting Toolbox that Fangjun mentioned is suitable for a different situation, in which one already knows the form of the function that generated the values, and is trying to determine the coefficients that best match that general form to the data. That is (often) practical, but when one does not know the form of the function ahead of time, the data alone is not sufficient to allow you to determine the form of the function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!