필터 지우기
필터 지우기

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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by