Info

This question is closed. Reopen it to edit or answer.

while , if matlab

1 view (last 30 days)
jinhong lee
jinhong lee on 7 Oct 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
hello , i am using matalb
but i have difficult in getting output i want
could you help me
when i enter 975
i want to result as ' D구간' , '특정구간' at the same
my code is x = input(' 점수입력 (1~1000)
if 200<=x & x<=349
grade = 'A구간'
elseif 500<=x & x <=748
grade = 'B구간'
elseif 100<=x & x <=550
grade = 'C구간'
elseif 880<=x & x <=990
grade = 'D구간'
else if 400<=x & x <=649
grade = 'F구간'
else
grade = 'E구간'
end
...
what should i do for it ...?..

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!