Multi column legend in matlab plot
156 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sudhir Rai
am 14 Jun. 2023
Kommentiert: Sudhir Rai
am 22 Jun. 2023
How can i set multicolumn and row legen in matlab R2016a,.
I could not find simple way to do it.
1 Kommentar
Adam Danz
am 15 Jun. 2023
If you use MATLAB R2018a or later, you can use the NumColumns property of legend to specify the number of columns.
plot(rand(12))
legend('NumColumns',3,'Location','southOutside')
Akzeptierte Antwort
dpb
am 14 Jun. 2023
Try FEX submission
7 Kommentare
dpb
am 15 Jun. 2023
Things like this I put into a special directory created and added to the MATLABPATH so will always be available regardless of the current working directory for project files. I find that structure works best.
Weitere Antworten (0)
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!