I have a 2D graph both x and y axis; however the x and y are in inches and i want to convert them into centimeter
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ray
 el 26 de En. de 2016
  
    
    
    
    
    Editada: Star Strider
      
      
 el 26 de En. de 2016
            I have a 2D graph both x and y axis; however the x and y are in inches and i want to convert them into centimeter. So the x and y axis range is from 0 to 18. I would like it to go from 0 to 45.72

0 comentarios
Respuesta aceptada
  Star Strider
      
      
 el 26 de En. de 2016
        
      Editada: Star Strider
      
      
 el 26 de En. de 2016
  
      Use the get and set functions to adjust the tick labels:
xt = get(gca, 'XTick');
set(gca, 'XTick', xt, 'XTickLabel',xt*2.54)
yt = get(gca, 'YTick');
set(gca, 'YTick', yt, 'YTickLabel',yt*2.54)
NOTE: I tested this on another plot. It works.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Discrete Data 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!

