Hello,
'parnam' contains 8 1×1 structures (data and text). The data contains the latitude, longitude and altitude of a sensor. I want to create a legend for my plot that states the latitude of each plot, but it only prints the first.
figurefor k=1:mscatter(x(:,k),y(:,k)), hold onlegend(sprintf('aircraft at %2.2f degrees latitude', parnam{1,k}.data(1,1)))endhold off
Best Answer