Adding legend to a plot from an array

31 次查看(过去 30 天)
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 ?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-20
编辑:Azzi Abdelmalek 2015-6-20
lengend(legStr)
  3 个评论
Tamil
Tamil 2024-4-20
Enter legend one space with starnames. Legend (starnames)

请先登录,再进行评论。

更多回答(1 个)

Kishor
Kishor 2022-12-19
Add a legend to plot using the array starname

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by