
Bradley S. answered 02/02/22
5+ Years Experience Physics Grad Student
The question is a bit unclear but I will try my best to answer what I think you are asking!
If you are just looking for a 2D plot of temperature vs. radius of the cylinder then you will use:
plot(r,T);
where r is your 1xN length array (N data points) of the radius
and T is your 1xN length array of the temperatures.
Or if you are looking to make a plot of the cylinder itself with the temperature overlayed with color we will want to do a Contour plot. Depending on your data this may be a bit involved.
you will first need to make an x-grid and y-grid using meshgrid(r) where r is your radius array. then you will need to make a temperature matrix by placing the correct temperatures in your temperature array in the correct locations based on x-grid and y-grid (at their correct radius locations using r = sqrt(x^2 + y^2)) most likely using a for loop and if statements. then you will be able to do:
contour(x-grid,y-grid,T-matrix)
I hope this helps a bit, but without more information about your data, I cannot help much further.