place Figure handles in vektor
Ältere Kommentare anzeigen
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 Kommentare
Daniel Shub
am 22 Mai 2011
Other than a couple of typos and the fact that you are trying to return a global variable, what is your problem?
yngv
am 22 Mai 2011
Daniel Shub
am 22 Mai 2011
not on my computer.
yngv
am 22 Mai 2011
yngv
am 23 Mai 2011
Jan
am 23 Mai 2011
@yngv: I do not think this is annoying, but a suboptimal design.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!