how to hold legend… the plot is coming correctly… but the legend is coming only for the last one…. how to hold the legend….
col = hsv(9); for i = 1:cs plot(x, y, 'LineWidth', 2, 'color', col(j,:)); hold on legendInfo{i} = Info{i}; legend(legendInfo, 'Location', 'Best'); hold all end
Best Answer