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)
この性質の何かがあなたが探しているものです