フィルターのクリア

nested IF-ELSE statement

3 ビュー (過去 30 日間)
Ilmiat
Ilmiat 2020 年 9 月 14 日
コメント済み: Image Analyst 2020 年 9 月 17 日
Please help me solving this matlab code. Thats how the answer should look like:-
  1 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 9 月 14 日
It looks like you forgot to share your code.

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

採用された回答

Image Analyst
Image Analyst 2020 年 9 月 14 日
Hint: input(), rem(), sprintf(), while
message = sprintf('>>>>> Enter an integer (0-9)\n blah blah fubar snafu lorem ipsum : ');
Change message passed to input depending on what their input was.
response = '0';
message = sprintf(.....
while response ~= 'x'
response = input(...........
if................
message = ...........
elseif ...........
end
end
See if you can finish it.
  5 件のコメント
Ilmiat
Ilmiat 2020 年 9 月 17 日
Can you kindly just say what should I use for string and complex part? isstr, isreal are not working.
Image Analyst
Image Analyst 2020 年 9 月 17 日
elseif imag(p) ~= 0

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by