MATLAB Answers

Live scripts: Get axes handle of figure NOT stored in live script.

2 views (last 30 days)
Nicholas Ayres
Nicholas Ayres on 9 Jul 2020
I have a function which has plotted a series of functions as non-livescript plots, but not passed the plot handles out.
I am trying to use gca within my code to grab the most recently selected plot.
However, since (I assume) the live script is based off some form of gui, the gca function only grabs the handle of (I assume) plots within the live script window itself.
How do I grab the handle of a plot that is not located in the livescript?

Answers (0)

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!