This how i want the plot to be

조회 수: 1 (최근 30일)
idowu Abdul-Semiu
idowu Abdul-Semiu 2019년 9월 6일
답변: the cyclist 2019년 9월 6일
plom.png
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 9월 6일
It is not clear what your question is?
I note that you tagged with "3d plot", but that looks like a 2D plot.

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

답변 (3개)

Bjorn Gustavsson
Bjorn Gustavsson 2019년 9월 6일
pcolor(x,y,I),shading flat,xlabel('x-text'),ylabel('y-text'),colorbar
HTH

Robert U
Robert U 2019년 9월 6일
Hi idowu Abdul-Semiu,
There are several plot-commands that support the image you are showing. Have a look for the following commands:
You would have to adjust the display options of the plot-commands, e.g. remove the contour lines in contourf() and change the colormap.
Read and try. If you have troubles to adjust the plot, provide the grid and/or data matrices and post the code you have tried so far.
Kind regards,
Robert

the cyclist
the cyclist 2019년 9월 6일
Since you have spread similar questions across several places, without good organization (and one of them was closed), I'll post here.
For the code I helped you with, that produced X,Y,Z, the following will produce a contour plot of the style above:
figure; contour(X,Y,Z,'fill','on')
colorbar
test.png
For comparison, the following is the mesh version, so this "boring" plot is expected.
test.png

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by