
[英]Print figure when plot finishes, works on debug mode but not in runtime
[英]Print the name of a variable on upon a plot/figure
是否可以参考/访问组成矩阵的变量名称(例如nx1数组)? 我希望访问它们,以便在其中插入我创建的图形或图形中的名称(作为text
)。 这是一个例子:
A = [supdamp, clgvlv,redamp,extfanstat,htgvlv,occupied,supfanspd]
%lots of code here but not changing A, just using A(:,:)'s
%drawn figure
text(1,1,'supdamp')
...
text(1,n,'supfanspd')
我尝试创建一个名称为a
的字符串,但尝试失败,这样我就可以遍历a(i,1)
,然后使用诸如text(1,n,'a(i,1)')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.