Mark one plot in a subplot
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Marie P.
 el 9 de En. de 2021
  
    
    
    
    
    Editada: Roy Kadesh
      
 el 9 de En. de 2021
            Hello there, I have an iteration that collects all the plots that it creates in a subplot. I want it also to label one particular plot automatically within the iteration or afterwards.
for i=1:21
hold on
subplot(3,7,i)
set(gfc, 'Windowstate', 'maximized')
myScript
end
I want the 11th iteration step(and so the 11th plot in the subplot) to look different or to be labeled in some kind of way. I tried to put 
set(gcf(3,7,11) 'color', [1 1 0]);
after the iteration but it doesnt work.
0 comentarios
Respuesta aceptada
  Roy Kadesh
      
 el 9 de En. de 2021
        
      Editada: Roy Kadesh
      
 el 9 de En. de 2021
  
      It is best to store the handle to the axes object when you create it.
set(gfc, 'Windowstate', 'maximized')
ax={};
for n=1:21
    hold on
    ax{n}=subplot(3,7,n)
    myScript
end
set(ax{11},'color', [1 1 0]);
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Subplots 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!

