How can you open figures using MATLAB compiler?
Afficher commentaires plus anciens
I've run into a problem using MATLAB compiler. I want to copy a line from one plot figure to a different plot figure. I have achieved this with the following code:
fg1 = open(Figure1);
fg2 = open(Figure2);
ax1 = get(fg1, 'Children');
ax2 = get(fg2, 'Children');
ax2p = get(ax2(2),'Children');
copyobj(ax2p(3), ax1(2))
close
It leaves open the first figure with an extra line that was copied from the second.
When I compile this and attempt to call this code I get the error:
Warning: The Open function cannot be used in compiled applications.
This appears in the windows command shell when the code is called, not at compile time. This question has already been asked, with no luck (hence my alternate question [now edited to reflect solution]).
Thanks in advance for any help I may get!
1 commentaire
David Nickalls
le 4 Juil 2018
Modifié(e) : David Nickalls
le 4 Juil 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur C Shared Library Integration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!