How can I add some labels for a group of curves

1 次查看(过去 30 天)
Hi all
I have wriiten a program which the output is a group of curves.
I want to add a label for each curve and the points of each curve also connected by a line. my program is as below:
plot(x(i), y(j), '--rs', 'LineWidth', 1, 'MarkerEdgeColor', 'r', 'MarkerFaceColor', 'b', 'MarkerSize', 2);
hold on
xlim([40000 500000]);
ylim([5000 70000]);
can you guide me.

回答(1 个)

the cyclist
the cyclist 2011-11-26
I expect you could use either the legend() or text() commands to do what you want.

类别

Help CenterFile Exchange 中查找有关 Text Analytics Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by