Assigning A-Z with 1-26 without having to assign every variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • denxerator
    New Member
    • Oct 2012
    • 1

    Assigning A-Z with 1-26 without having to assign every variable

    Question answered, thanks!

    Thank you!!!
    Last edited by denxerator; Oct 3 '12, 03:14 AM. Reason: Question answered
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    Asking for complete code is not normally allowed.
    Homework question.

    Please show your work

    Comment

    • whodgson
      Contributor
      • Jan 2007
      • 542

      #3
      if this is homework please ignore.
      this is a sloppy question so details are omitted.
      make up your mind about upper or lower case!
      Code:
      a=char('a'- 86)//should print '1'
       b=char('b'- 86)//should print '2'

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        This thread is being closed due to violation of forum guidelines.

        Comment

        Working...