To reflect a contour plot
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    aneps
      
 el 6 de Abr. de 2016
  
    
    
    
    
    Respondida: Roger Stafford
      
      
 el 6 de Abr. de 2016
            I have my potential surface plot. I want to reflect it and plot the effective potential (contour plot). My code to plot the potential surface is simple:
load Voltage.dat
V=Voltage;
clear Voltage;
V=double(V);   % V is now 245x52 double
figure, contour(V,500);
My device is having mirror symmetry. This is only the potential plot for the one half. How can I take the reflection of this contour plot and make a new plot including the mirror reflection?
0 comentarios
Respuesta aceptada
  Roger Stafford
      
      
 el 6 de Abr. de 2016
        If your symmetry is in the left-right direction, then do:
   contour(V(:,end:-1:1),500);
However, that leaves the two images overlapping. To avoid this you will need to use the
   contour(X,Y,Z)
form appropriately. That is, reverse the Z second index as above, and shift X to one side in the appropriate manner.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Lighting, Transparency, and Shading 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!

