필터 지우기
필터 지우기

How can I specify contour levels when using plot(fit, 'Style', 'Contour')

조회 수: 6 (최근 30일)
Martin
Martin 2014년 8월 28일
댓글: z c 2018년 2월 5일
I am following one of the curve fit toolbox examples, and handing the fit function modeling result to the plot function to create a contour plot. Contour has a level function argument, but I cannot find a Plot level property. If someone could show how to use Contour with the fit model result, that would also solve the problem. I found one example using meshgrid, but that crashed Matlab when I tried it.
Thank You

채택된 답변

Aykut Satici
Aykut Satici 2014년 9월 2일
You can get the handle to the Contour object when you are calling the "plot" function and then set the 'ShowText' property on. For an example see the code that I have attached. The code follows the Curve Fitting Toolbox example:
until the point the fit object is plotted. I plot the contours of the fit object, specify the levels that I want to be seen, and then label them.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by