Add variable Text to the end of the Arrow in a Loop
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, I want to ask if it is possibel to combine the '\downarrow' with a variable value in the following function:
text(s-7,Num(s,k),'\downarrow', 'VerticalAlignment', 'baseline','FontSize',5)
I normally use
{c}
instead of
'\downarrow'
to plot the values of the C variable at the specified places...I wonder how to put a down arrow followed by the value of the in each case??? I tired this version:
'\downarrow {c}'
and it just places the {c} text on the chart.
Thanks!!!
D
0 件のコメント
採用された回答
Walter Roberson
2011 年 9 月 30 日
Are the values in C numeric or text?
Consider using sprintf(), perhaps in combination with strcat(), to construct the string.
One possibility:
strcat({'\downarrow '}, cellstr(num2str(C)))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!