필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help!!! ASCII writing a code that displays the numeric code with its character

조회 수: 1 (최근 30일)
Charlotte Reed
Charlotte Reed 2020년 3월 19일
마감: John D'Errico 2020년 3월 19일
sorry for the super weird format
Write a MATLAB program that displays ASCII numeric codes as the corresponding characters
Your program should proceed in a loop. Begin by prompting the user to enter some ASCII codes or -1 to quit. Input the codes and echo the corresponding characters to the command window. We're only interested in the ASCII codes representing the core set of displayable characters. These fall in the range 32 to 126. For any codes outside this range (except -1, which is used to quit), substitute the code for a question mark. Proceed in a loop unit -1 is detected. When that happens, output 'Bye!' and terminate.
  댓글 수: 2
Rik
Rik 2020년 3월 19일
Sounds like a reasonable homework question. What have you done so far to solve it?
Charlotte Reed
Charlotte Reed 2020년 3월 19일
I haven't had a full idea on how to start it. I know the "char" function will be involved, but what gets me is the 32-126 range, and defining how to use char and fprintf! I'm very new to MATLAB

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by