On 1/20/2012 8:00 AM, Dima wrote:
> I use 64-bit version of Windows 7.
> Is there any way to save the string on SD card in ASCII format?
"Ascii format" may not be what you expect,
or what Matlab can directly use.
Any calculator formula or UserRPL program, however,
may be converted to a string object by the \->STR command.
Any calculator string object that you can read
can be saved on the SD card, using the built-in character set,
which is mostly ISO-8859-1 with additional math and program symbols
in undefined sections of that character set.
Any "hex editor" can be used to remove the first 13 bytes
of the object that was saved on the card ("HPHP49-xBBBBB"
where x is a letter and BBBBB are binary byte values)
which leaves you with the original character string,
or you can try "Filer6" in the calculator, which may be able
to store the "bare" string directly on the SD card:
<
http://www.hpcalc.org/search.php?query=filer6>
A free hex editor for Windows:
<
http://www.softcircuits.com/cygnus/fe/>
The calculator has an additional concept called
"ascii translation," which can represent special characters
that are undefined in ISO-8859-1 by \xx or \nnn
Formula examples: \pi and \GS (pi and Greek [uppercase] Sigma).
Program examples: \<< \->STR \>>
Such "ascii translation" allows posting or saving
any programs and formulas using only universal ascii text,
but it may require translating back again into the calculator's
more complete internal symbol set to handle the complete universe
of all possible mathematical formulas and calculator programs.
I don't know how elementary or complex are your formulas,
nor how Matlab expresses the more complex of formulas and functions,
which may differ from the calculator's internal syntax,
so I don't know what approach will prove best for you.
FWIW, the following article happens to supply calculator programs
which can export all internal formulas and UserRPL programs
in "ascii translated" form, and can also import those again:
"Ascii Import/Export for SD card and Emulator"
<
http://groups.google.com/group/comp.sys.hp48/msg/4e7ed90b3cf11c42>
Interesting things about that article are that its first short program
can be used to import all the other programs offered in the article,
and also that the first two short programs do almost everything
that most people need, so there's no need to import all the others anyway :)
[r->] [OFF]