place Figure handles in vektor
Mostrar comentarios más antiguos
Hello im making a funtion were its possible to typ in a fnction and make a plot of it,
function plot_handles=skapaplot(varargin)
syms x X;
global plot_handles;
persistent n;
if isempty(n)
n = 1;
else
n = n + 1;
end
funk=input('function:','s');
figure;
ezplot(funk);
plot_hanldes(n)=gcf;
end
I want to keep track of how many figure and other information about the line in the plot, in the vector plot_handles. how can i do it in a easy way?
6 comentarios
Daniel Shub
el 22 de Mayo de 2011
Other than a couple of typos and the fact that you are trying to return a global variable, what is your problem?
yngv
el 22 de Mayo de 2011
Daniel Shub
el 22 de Mayo de 2011
not on my computer.
yngv
el 22 de Mayo de 2011
yngv
el 23 de Mayo de 2011
Jan
el 23 de Mayo de 2011
@yngv: I do not think this is annoying, but a suboptimal design.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!