Hello
I was trying to copy xlabel text from one axes to another with following code. What I exactly want is XLabel of a1f1 and a1f2 same.
f1 = figure;a1f1 = axes;XLa1f1 = xlabel('XLabel of axes');f2 = figure;a1f2 = axes;set(a1f2, 'XLabel', XLa1f1)
The above code produces following error:
Error using setXLabel must be an existing text child of axes
Can someone tell me how to work around this.
I am using R2014a
Thanks
Best Answer