1より小さい数でループ計算を実行するには?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
1より小さい数でループ計算を実行するには,どんなプログラムを記述すれば良いですか?
具体的には,while文を用いて0.5刻みで計算したいです.
0 Commenti
Risposte (1)
Atsushi Ueno
il 15 Gen 2022
x = -2; % 例として変数xに2を設定
while x < 1
x % ここで変数xを使って計算する
x = x + 0.5;
end
0 Commenti
Vedere anche
Categorie
Scopri di più su ループと条件付きステートメント in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!