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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by