how write legend plot right side)

2 views (last 30 days)

Accepted Answer

Star Strider
Star Strider on 7 Sep 2023
Try this —
x = linspace(0, 10);
y = randn(size(x,2), 5);
figure
plot(x, y)
legend(compose('Vector %2d',1:5), 'Location','NE')
.
  7 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!