The Designer's Guide Community
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Dec 4th, 2023, 9:34pm
Pages: 1
Send Topic Print
dynamic legend syntax (Read 4011 times)
Community Member

Posts: 57

dynamic legend syntax
Jun 14th, 2012, 3:08am

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
 plot(bla bla)
 hold all
Back to top
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2023 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to Consider submitting a paper or model.