How to project a N*N matrix on a circular shape without loosing any data?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ali Hariri
 el 23 de En. de 2024
  
    
    
    
    
    Comentada: Ali Hariri
 el 26 de En. de 2024
            Dear community;
I have a 60 by 60 matrix that represents a temperature profile over a circular surface.
I need to represent the temperature distribution on a circular shape rather show on a rectangular shape.
In time I use imagsc but I am not able to reproduce a circular (heat map like) plot.
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 23 de En. de 2024
        3 comentarios
  Walter Roberson
      
      
 el 25 de En. de 2024
				How did the polor to rectangular contribution work out for you?
Más respuestas (1)
  Mathieu NOE
      
 el 23 de En. de 2024
        hello 
maybe this ?
% your  temperature data
N = 60;
temp_data = 50+10*peaks(N);
% Generate basic cylinder
t = (0:2*pi:2*pi*(N-1))/N;
% r = 2 + 0*sin(t/2); % straigth cylinder
r = 2 + sin(t/2); % inflated cylinder (tire)
[X,Y,Z] = cylinder(r,N);
surf(X,Y,Z,temp_data)
colormap(jet)
colorbar('vert')
5 comentarios
Ver también
Categorías
				Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




