The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> System Simulators >> dynamic legend syntax https://designers-guide.org/forum/YaBB.pl?num=1339668527 Message started by singh on Jun 14th, 2012, 3:08am |
Title: dynamic legend syntax Post by singh on Jun 14th, 2012, 3:08am Hello, I have a matlab script in which i need to plot multiple data in single plot. suppose i have to plot data for 5 vales of i. right now i am hard coding those values inside legend. But i want that script should automatically put legend values each time from 1 till 5. how can i do that? moreover i need to print a term 'mm' in legend everytime eg 1mm,2mm ,3mm,4mm,5mm. for i = 1 :5 functionality plot(bla bla) hold all legend('1','2','3','4','5') end |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |