|
|
convert string to ascii
Hello
Can anybody tells how to convert a string in Ascii values in matlab/
Thanks in advance
wait for reply..
|
|
0
|
|
|
|
Reply
|
Mousmi
|
11/9/2010 11:56:08 AM |
|
You can convert a string to a matrix of ASCII values by just wrapping it in double
> s=double('hello')
s =
104 101 108 108 111
Convert back as follows
>> [char(s)]
ans =
hello
Hope this helps,
Mike
|
|
1
|
|
|
|
Reply
|
Mike
|
11/9/2010 7:35:32 AM
|
|
hello Mike,
Thanks alot. It works. Thanks again.
Mousmi
|
|
0
|
|
|
|
Reply
|
Mousmi
|
11/9/2010 1:24:03 PM
|
|
On 09/11/10 5:56 AM, Mousmi Chaurasia wrote:
> Can anybody tells how to convert a string in Ascii values in matlab/
That is not generally possible, as Matlab strings are stored as 16 bit
numbers and can include non-ASCII characters.
You also need to define *which* ASCII you are working with. There are
several code sets that go by the generic name ASCII . One of those,
US-ASCII, was later used as the foundation of the ISO Latin-1 font that
then went on to become the first block of UNICODE, but if you happen to
need one of the other ones then the conversion becomes more difficult.
|
|
0
|
|
|
|
Reply
|
Walter
|
11/9/2010 3:40:27 PM
|
|
|
3 Replies
1276 Views
(page loaded in 0.068 seconds)
Similiar Articles: convert string to ascii - comp.soft-sys.matlabHello Can anybody tells how to convert a string in Ascii values in matlab/ Thanks in advance wait for reply.. ... Conversion: double IEEE 754 => decimal ASCII-String - comp.lang ...Hi, my problem is that i have to print some results that are given as a double (64bit IEEE 754) on a LCD. The problem is the conversion of the double into an ASCII ... varchar2 to hex/octal ... convert string - comp.databases.oracle ...Hex to ascii - comp.lang.asm.x86 varchar2 to hex/octal ... convert string - comp.databases.oracle ... Hex to ascii - comp.lang.asm.x86... asm.x86 convert string to ascii ... unsigned long -> ascii conversion - comp.lang.asm.x86The problem is the conversion of the double into an ASCII-String For ... asm.x86 The code in question can convert a full 32-bit unsigned ... that your document is not one ... Convert CDF to ASCII format - comp.lang.fortranconvert string to ascii - comp.soft-sys.matlab... to ascii - comp.soft-sys.matlab The American Standard Code for Information Interchange, or ASCII, encoding ... problem to convert integer to ascii chars for LCD in vhdl - comp ...In 1993 an attibute is added to the VHDL language. If int is an integer value the following will give the string: integer'image(int) Another solution is to use a ... help with convert real value to character - comp.lang.fortran ...convert string to ascii - comp.soft-sys.matlab help with convert real value to character - comp.lang.fortran ... convert string to ascii - comp.soft-sys.matlab help with ... Can we convert a char to ascii in awk - comp.lang.awkconvert string to ascii - comp.soft-sys.matlab Can ... in awk - comp.lang.awk The American Standard Code for Information Interchange, or ASCII, encoding ... How To: Convert ... String to number conversion - comp.soft-sys.matlabconvert string to ascii - comp.soft-sys.matlab... UNICODE, but if you happen to need one of the other ones then the conversion ... sys.math ... convert string to ascii ... Convert string : Upper to lower - comp.unix.solarisconvert string to ascii - comp.soft-sys.matlab Hello Can anybody tells how to convert a string in Ascii values in matlab ... Convert string : Upper to lower - comp.unix ... String to ASCII chart, ASCII to decimal convertor, String to ...String to ascii or hexa or binary Converter. tool converts Character / String to ASCII code, converting to Binary from its ASCII code, conversion of Character ... How to Convert an ASCII String to Hex Format | eHow.comIf you are studying computer science, programming or preparing for a certification, at some point it becomes necessary to be able to convert an ASCII (American ... 7/22/2012 1:42:45 PM
|
|
|
|
|
|
|
|
|