CLICK TO REPLOT THE CHILD ,HOW TO DO
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roger
el 25 de Dic. de 2013
Respondida: Pawel
el 25 de Dic. de 2013
how to open a new figure only plotting itself when clicking children? click on d1,then open a new figure of d1, how to make it


0 comentarios
Respuesta aceptada
Pawel
el 25 de Dic. de 2013
function abc
figure()
for ii = 1:4
subplot(2,2,ii)
plot(rand(10))
mySet(gca, gca)
end
end
function mySet(x,y)
set(x,'ButtonDownFcn',test(y))
children = get(x,'Children');
if ~isempty(children)
for ii = 1:length(children)
mySet(children(ii),y);
end
end
end
function y = test(a)
y = @b;
function b(e,f)
figure
copyobj(a,gcf)
set(gca,'OuterPosition',[0 0 1 1])
end
end
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!