Hi,
I want to use the variable of my function which is a structure as the title of a figure. For example I do :
a = fullplot ( name_struc)%The function is defined as :
function [] = fullplot(struc) e = struc.xaxis s = struc.yaxis plot(e,s) title ( ' XXX ' )end
Instead of the 'XXX' i want to put 'name_struc'.
I tried with inputname(1) but this return 'struc' and not 'name_struc' .
Can someone help me please ?
Thank you
Best Answer