program that returns random letter

조회 수: 12 (최근 30일)
Cool007Monkey
Cool007Monkey 2018년 1월 28일
편집: Cool007Monkey 2018년 1월 30일
program that returns random letter
  댓글 수: 2
John D'Errico
John D'Errico 2018년 1월 28일
편집: John D'Errico 2018년 1월 28일
Please don't delete your question. That insults the person who spent the time to answer it. It also makes it less likely that individual will bother to answer another of your questions.
You hurt Answers as a site, because it leaves meaningless answers, since there is no longer a question that they solve. And flagging your own question as spam is just foolishness. It looks like the question has been restored now, so this has been repaired.
Rena Berman
Rena Berman 2018년 1월 29일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23
Stephen23 2018년 1월 28일
편집: Stephen23 2018년 1월 28일
char(randi([65,90]))
char(randi(+'AZ'))

추가 답변 (1개)

Star Strider
Star Strider 2018년 1월 28일
Start here:
UCL = 'A':'Z'; % Vector Of Uppercase Letters
then choose one!
  댓글 수: 3
Stephen23
Stephen23 2018년 1월 28일
@John D'Errico: Not only is this very convenient, it also removes the possibility of missing a letter when building lists for comparison. Very handy!
Star Strider
Star Strider 2018년 1월 28일
I gave an appropriate hint, while not giving a complete solution to what is obviously a homework problem, and for which the OP had shown no effort.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by