Regarding the contour matrix obtained from contourf
조회 수: 1 (최근 30일)
이전 댓글 표시
I recently ran contourf on the image below .
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/677468/image.png)
The output of this is as follows
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/677473/image.jpeg)
Now when I plot the contour matrix for Number 240,I am getting something like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/677478/image.jpeg)
Any ideas why there is a line in the middle of the contour,I know that the matrix returned from contourf is a 2xn matrix wherein the first column in each set contains the contour level and the number of vertices at that level.So what I did was from the original contour matrix I removed those columns where it mentions the contour level and the number of vertices at that level.
I also read somewhere that the inputs to contourf should be strictly increasing or decreasing,since the input image contains rows and columns not in strict increasing/decreasing order,do you think that could be one reason as to why there is a line in the middle of the 3rd plot.
Any help will be appreciated.
댓글 수: 4
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!