How to import a matrix from a PC into the HP48?
#1

I have some data on the PC as text file. I want to import the data into the HP48 (I have an SX and a GX as well as the emu48) in the form of a 2 column matrix so that I can run the regression on. What format the data must be in so that once transfered to the 48 it would recognize as a matrix?

Edited: 31 Aug 2006, 4:43 p.m. after one or more responses were posted

#2

Quote:
I have some data on the PC as text file. I want to import the data into the HP48 (I have an SX and a GX as well as the emu48) in the form of a 2 column matrix so that I can run the progression on. What format the data must be in so that once transfered to the 48 it would recognized as a matrix?

Mostly every string in HP48 matrix format is accepted by Emu48.

Sample:

[ [ 1 2 ]
[3 4] ]

can be imported by Copy&Paste (Edit/Paste Stack) or with the Edit/Load Object... as string into stack Level 1. A simple OBJ-> on the calculator converts this into a Matrix object.

Christoph

#3

Hello,

there is an Excel-AddIn for transfering data between an HP-48/49 and Microsoft Excel 97 and higher over at hpcalc.org (http://www.hpcalc.org/details.php?id=5166). I've tested it with a 49g and it works perfectly.

Hope that helps.

Regards

Karl

#4

I exported a matrix from my 50g to the PC using Conn4x and this is the result:

%%HP: T(3)A(R)F(.);
[[ 1 2 ]
[ 3 4 ]]

So if you can create such a file from your data, you are fine.

Marcus

#5

Quote:
I exported a matrix from my 50g to the PC using Conn4x and this is the result:

%%HP: T(3)A(R)F(.);
[[ 1 2 ]
[ 3 4 ]]

So if you can create such a file from your data, you are fine.


Note that if the data includes any "decimal point", for the ASCII
transfer header, use F(.) if the "fraction mark" is a period, or
F(,) if the fraction mark is a comma.

For that matter, if you omit the transfer header, then the
calculator will store the entire data stream as a character
string, which you could recall to the stack and "execute" with
STR\-> or OBJ-> to get the matrix.

For more information on transfer headers, search from
http://groups.google.com/group/comp.sys.hp48.

For the 49 series, numbers without decimal points are compiled as
"exact integers" if the calculator is in "exact" mode, or "real
numbers" if the calculator is in "approximate" mode.

But I do prefer Cristoph's suggestion of using Emu48 to work with
data that's available on the PC, rather than transferring it to a
physical calculator.

Regards,
James

#6

Thanks everyone! I followed Christoph instructions and it worked fine.



Possibly Related Threads…
Thread Author Replies Views Last Post
  AFTER HP-Prime update, Shift+Matrix CRASHES Joseph Ec 3 2,004 12-06-2013, 11:06 AM
Last Post: Joseph Ec
  HP Prime Matrix TERRIBLE bug and question uklo 19 4,970 11-25-2013, 12:10 PM
Last Post: Mic
  HP Prime: editing a matrix Alberto Candel 6 2,301 11-20-2013, 06:26 PM
Last Post: Helge Gabert
  HP Prime - spreadsheet import bluesun08 1 1,552 11-19-2013, 03:21 PM
Last Post: CR Haeger
  Absolute Value and Matrix BruceTTT 5 2,059 11-11-2013, 11:52 PM
Last Post: Walter B
  Connectivty Kit for HP Prime needs an "Import Program" Command Eddie W. Shore 3 1,878 10-23-2013, 03:37 PM
Last Post: Eddie W. Shore
  WP-34S Matrix operations with routine-local registers? Tom Grydeland 1 1,158 09-04-2013, 10:46 AM
Last Post: Marcus von Cube, Germany
  Matrix Characteristic Polynomial - Reloaded. Ángel Martin 12 3,327 08-22-2013, 05:33 PM
Last Post: Thomas Klemm
  Matrix Richard Berler 3 1,392 08-18-2013, 06:24 PM
Last Post: Paul Dale
  Advantage/CCD Matrix Challenge Ángel Martin 1 1,142 08-09-2013, 06:22 PM
Last Post: Thomas Klemm

Forum Jump: