How can I pass a figure from one function to another without printing the figure?
33 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I'd like to pass a figure from a 'called' function to it's calling function. Any idea how this is done? The figure is plotted as:
figure(1)
hold on
zoom on
axis square
for i=1:ele_n
line(defx(el_disp(i,:)),defy(el_disp(i,:)),'Color','r');
line(x(el_disp(i,:)),y(el_disp(i,:)));
end
1 commentaire
Stephen23
le 26 Nov 2017
Just pass the figure handle:
I recommend guidata or nested functions, both of which are simple and intuitive.
Réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Identification dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!