How to make a legend for a plot within a for loop
Show older comments
HI! I am currently plotting a graph (with 3 different entries) and I want to create a legend within the for loop that would show each iteration for the 3 different I/O how should I approach this? The current legend i have does not update with each iteration
2 Comments
Will Fritz
on 18 Jul 2018
Hi, can you provide a little more context to your issue. For example, do you have three different plots? Or just one where the legend changes every iteration? Any code provided to help frame this would be appreciated
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
