📜  将变量添加到图例 matlab - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.343000             🧑  作者: Mango

代码示例2
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{:})