Answers for "put value in legend matlab"

C++
0

add variable to 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{:})
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language