Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

automatic legend matlab

str = {strcat('z = ' , num2str(z))}  % at the end of first loop, z being loop output
str = [str , strcat('z = ' , num2str(z))] % after 2nd loop
% plot your data
legend(str{:})
 
PREVIOUS NEXT
Tagged: #automatic #legend #matlab
ADD COMMENT
Topic
Name
6+4 =