program that returns random letter
显示 更早的评论
program that returns random letter
2 个评论
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
2018-1-29
(Answers Dev) Restored edit
采纳的回答
更多回答(1 个)
Star Strider
2018-1-28
Start here:
UCL = 'A':'Z'; % Vector Of Uppercase Letters
then choose one!
3 个评论
John D'Errico
2018-1-28
编辑:John D'Errico
2018-1-28
Funny. I never realized that colon works on chars. Of course, it makes sense that it could do so. One of the things that I like about Answers, I can always learn something.
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
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!