필터 지우기
필터 지우기

Understanding the working mechanism of contourc

조회 수: 5 (최근 30일)
Kerem Yüksel
Kerem Yüksel 2023년 11월 14일
댓글: Kerem Yüksel 2023년 11월 16일
could someone explain how contourc(x,y) works?
I am getting a 2xN array as a result but can not figure what are these numbers states for. If it is possible, could you write down the equivalent code for contourc without using any function similar to contourc.
Thanks a lot.
  댓글 수: 10
Kerem Yüksel
Kerem Yüksel 2023년 11월 15일
is it possible to explain the given expressions? i was working with only 1 and small array. what is the X Y and Z values, which expressions will give me the x and y values in that case? thanks
Kerem Yüksel
Kerem Yüksel 2023년 11월 16일
@Stephen23 could you please explain the problem that I am facing with? with that format contourc(array,level), which values are gonna change with these X Y and Z?

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

답변 (1개)

Matt J
Matt J 2023년 11월 15일
The documentation doesn't disclose it, but I would guess that it does a kind of 2D bisection algorithm. Sample points are chosen near where Z=level and the area covered by the samples is iteratively contracted to make abs(Z-level) smaller and smaller.

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by