フィルターのクリア

hi , i'm trying to make a simple loop which is give me a useless syntax between what i need , please how can i remove ('ans=') thanks anyway

2 ビュー (過去 30 日間)
for k=1:20
sprintf('<div> DIV %d </div>',k)
end
it gives :
ans =
<div> DIV 18 </div>
ans =
<div> DIV 19 </div>
ans =
<div> DIV 20 </div>

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 21 日
Use fprintf()
for k=1:20
fprintf('<div> DIV %d </div>\n',k)
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by