Removing Xaxis and Yaxis values
    786 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Waseem Hussain
 el 3 de Nov. de 2017
  
    
    
    
    
    Respondida: DanielFromIllinois
 el 11 de Mzo. de 2025
            Hey I have plotted a graph but I want to remove the values on the axis, I don't want the numbers to show
0 comentarios
Respuesta aceptada
  Chenchal
      
 el 3 de Nov. de 2017
            % code
x = rand(1,100);
plot(x);
set(gca,'XTick',[], 'YTick', [])
3 comentarios
Más respuestas (1)
  DanielFromIllinois
 el 11 de Mzo. de 2025
        set(ax,'xticklabel',[])
You can also use set(ax,'XTick',[]) but then you lose the ability to still turn the xgrid on.  The grid will draw lines at your ticks specified by 'XTick'.
0 comentarios
Ver también
Categorías
				Más información sobre 2-D and 3-D 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!





