フィルターのクリア

implementing a script that asks f

2 ビュー (過去 30 日間)
Chloe St John
Chloe St John 2019 年 1 月 25 日
編集済み: Chloe St John 2019 年 1 月 27 日
Hi i think the way to do this is a while loop im just not sure about part of it:
whenever the script is an odd number , i would like the script to keep asking for user input
n=0
while (dont know what to put here)
n=n+1
thank you

採用された回答

TADA
TADA 2019 年 1 月 25 日
input Function Documentation
modulo Function Documentation, Or You Can Search In Google And Find At Least Half A Dozen Links To File Exchange Implementations Of Iseven/isodd (Haven't Looked At The Codes, but It's Very Simple To Implement)
  1 件のコメント
Chloe St John
Chloe St John 2019 年 1 月 25 日
thanks sorted it !

サインインしてコメントする。

その他の回答 (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