필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help with contour of a matrix

조회 수: 1 (최근 30일)
aurc89
aurc89 2014년 4월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
I have to plot a bidimensional map of a matrix using 'contour', and what I obtain is plotted in figure.
The problem is that in this way I have discrete lines, while I need to see a continuum between minimum and maximum values, with a gradual change of colors, with no blank spaces. Is it possible to do that? Maybe using a function different from 'contour'? Thanks!

답변 (1개)

Doubutsu
Doubutsu 2014년 4월 24일
I have about the same kind of image if I try to use contour on my data. Instead I plotted it using 'imagesc'. It works good enough for me (since I just want to see something), but I don't know if it is what you are looking for.
  댓글 수: 2
aurc89
aurc89 2014년 4월 24일
편집: aurc89 2014년 4월 24일
Thank you, now it looks better! Just one question: by using imagesc the image is not at the same position, because the vertical axis is reversed, while I prefer not to reverse it. How can I do it? In the figures below you can see what I mean (the first one is obtained by using contour, the second one with imagesc)
Chad Greene
Chad Greene 2014년 6월 25일
Indeed, imagesc will flip your data vertically. So you'll need to do imagesc(flipud(yourData)). Alternatively, you could use pcolor(yourData).

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by