Adding legend to a plot from an array
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Moiz
am 20 Jun. 2015
Kommentiert: Tamil
am 20 Apr. 2024
Ive got iD directories, iF files per directory and iS data sets per files. To extract the data I build an array dataset(:,iD,iF,iS) and also build a legend string with the corresponding names of the directory,file and data set just like legStr{iD,iF,iS}. Then I loop over the directories times the files times the data sets and plot it all in one figure. How can I use my legStr cell array to create a legend on this figure ?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 20 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 20 Jun. 2015
lengend(legStr)
3 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!