Reverse ASCII to Number in MATLAB | char(100)

  • Context: MATLAB 
  • Thread starter Thread starter wavingerwin
  • Start date Start date
  • Tags Tags
    Reverse
Click For Summary
SUMMARY

The discussion centers on converting ASCII characters back to their corresponding numerical values in MATLAB. The user references the function char(100), which outputs the ASCII character 'd'. The inquiry specifically seeks a function to reverse this process, converting the character 'd' back to the integer 100. In MATLAB, the function double('d') effectively achieves this conversion.

PREREQUISITES
  • Familiarity with MATLAB programming language
  • Understanding of ASCII character encoding
  • Basic knowledge of MATLAB functions and syntax
  • Experience with data type conversions in MATLAB
NEXT STEPS
  • Research the MATLAB function double() for converting characters to their ASCII values
  • Explore character encoding standards, focusing on ASCII
  • Learn about MATLAB's data type conversion functions
  • Investigate other MATLAB functions for string manipulation
USEFUL FOR

This discussion is beneficial for MATLAB programmers, software developers working with character data, and anyone interested in understanding ASCII conversions in programming contexts.

wavingerwin
Messages
93
Reaction score
0
i know
>>char(100)

gives some kind of ascii letter as an answer

my question is, is there a function to convert the ascii letter back to 100?

Thank you!

edit - The language is MATLAB
 
Physics news on Phys.org
(int) 'C'
 

Similar threads

Replies
6
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K