nested IF-ELSE statement

1 次查看(过去 30 天)
Please help me solving this matlab code. Thats how the answer should look like:-

采纳的回答

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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by