Using text function in a for loop
古いコメントを表示
Hi, what i want to ask is how can i use the text function inside a loop and make it print the number of iterations? like this
for i = 1:4
----some code----
text(pos1,pos2,i)
end
1 件のコメント
Oleg Komarov
2012 年 5 月 12 日
Where do you want it printed? If on a graph, then you're on the right track. Do you want to keep the iteration already printed or you want to update it?
If you want to print it in the command window use disp or sprintf.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Desktop についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!