Like this?
ylabelname=sprintf('%s_{%s} (%s)',A.Name(row),A.Var(row),A.Unit(row))
ylabel(ylabelname,...
You can also use sprinfc (undocumented) to get a cell array of labels. Something like this
ylabelnames=sprintfc('%s_{%s} (%s)',A.Name,A.Var,A.Unit)
Should give you a list of ylabelnames.
Best Answer