- Write a wrapper function that will split your vector as approriate.
- Use a comma separated list: loc=[0.5;0.5];loc=num2cell(loc);text(loc{:},'a')
coordinate data in the text command
1 回表示 (過去 30 日間)
古いコメントを表示
Is it possible to somehow put both, x- and y-coordinate, with a single variable of two fields into the location fields of the text-command?
instead of :
loc = [0.5,0.5];
figure; text(loc(1),loc(2),'a')
something like
Is it possible to somehow put both, x- and y-coordinate, into the location fields of the text-command?
instead of :
loc = [0.5;0.5];
figure; text(loc,'a')
0 件のコメント
採用された回答
Rik
2021 年 12 月 16 日
You have two options that I'm aware of:
13 件のコメント
その他の回答 (1 件)
参考
カテゴリ
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!