Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 MATLAB 中,我通过 for 循环生成不同的图,并且我有一个字符串数组,
s = {'Indiana','Alabama','Texas'}
目标是将数组中的每个字符串打印为每个图的单独标题。
因此,情节 1 的标题为印第安纳州,情节 2 的标题为阿拉巴马州,情节 3 的标题为德克萨斯州。
谢谢,
阿曼达
for i from 1 to 3 plot p = <whatever you plot is> title(s[i]) set(p)
这种性质的东西就是你要找的东西