How to plot continuous color plot in matlab representing a 2D array

Status
Not open for further replies.

fparveen

Junior Member level 3
Joined
Jun 10, 2018
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
269
Hello,

I am trying to plot a 2D matrix for image reconstruction of head interior. I am using matlab contourf function. But the color plot doesn't look so good to me. Is there any suggestion for any other function/ method for this purpose?

Thanks in Advance.
 

Have a look at these functions for making good 3D surface plots. Try rotating the 3D view (in the MATLAB figure) to get the best angle.

Code Matlab M - [expand]
1
2
surf(X);
shading interp;



The shading interp part makes it look much smoother.

If you're not happy with the colours in general, you can change the colourmap. For example:


Code Matlab M - [expand]
1
2
contourf(X);
colormap(pink);

 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…