nested IF-ELSE statement

1 view (last 30 days)
Ilmiat
Ilmiat on 14 Sep 2020
Commented: Image Analyst on 17 Sep 2020
Please help me solving this matlab code. Thats how the answer should look like:-
  1 Comment
Cris LaPierre
Cris LaPierre on 14 Sep 2020
It looks like you forgot to share your code.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 14 Sep 2020
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 Comments
Ilmiat
Ilmiat on 17 Sep 2020
Can you kindly just say what should I use for string and complex part? isstr, isreal are not working.

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!