MATLAB: How to plot 2D temperature.

MATLABpolarrose

Hey, I have a matrix of the temperature from the geometry that is an circle.
I would like to know how can I plot it?
I am adding one image that looks like the result that I expect.

Best Answer

Without your data or calculations, providing specific code is not possible.
You may have to calculate your data in polar coordinates, then transform them to Cartesian coordinates to plot them with the contourf function.
See if something like this does what you want:
a = linspace(0, 2*pi, 500);
r = sin(a).^2;
[A,R] = meshgrid(a,r);
Z = R .* sqrt(A);
[X,Y,Z] = pol2cart(A,R,Z);
figure(1)
contourf(X, Y, Z)
grid on
axis equal
Related Question