Error assigning axes from array to xline
Show older comments
I have a function that plots a set of 3 by 4 subplots. Inside of that function I sucessfully collate all axes from each individual subplot (12 in total) storing them in a cell array.
My goal is to create a plot like this:

However, this was plotted in the wrong subplot (last one): [subplot(3, 4, 12)]
while I need this to be in a specific one, based on the ax_array that contains all of the previous axes.
When I try to specify in which axes the line should be plotted from one of the axes in my array, (in this case plot_idx is 1) I get the following error:

Say, for instance, that I want the line to be drawn in the first axes which has the title "Capacitance REFLECTION'. Indeed, the first element of my array is the axes that I want to:

The parent from the xline I am trying to plot is an Axes! hoever, it has been assigned to the wrong one!

However, when attempting to assign the Parent as the desired element from my array (first one), I get the following error:

What am I missing here?
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
