matrix with strings in Home
05-27-2015, 10:14 AM (This post was last modified: 05-27-2015 10:42 AM by salvomic.)
Post: #1
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
matrix with strings in Home
hi everybody,
I should use a matrix like [["First", "Second"],[1,2]] (to have a heading row).
I get it in CAS, but in Home I get error.

Salvo

EDIT:
about this, I should also write on a matrix (from a program) fractions, like 1/5, 2/5 ... or like strings or like symbolic fractions. Normally I get 0.2, 0.4 ...
I need hints to do that.

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
05-27-2015, 01:34 PM
Post: #2
 Tim Wessman Senior Member Posts: 2,174 Joined: Dec 2013
RE: matrix with strings in Home
A matrix is a fixed size number container. It can only support real or complex numbers. Use a list.

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
05-27-2015, 01:41 PM
Post: #3
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: matrix with strings in Home
(05-27-2015 01:34 PM)Tim Wessman Wrote:  A matrix is a fixed size number container. It can only support real or complex numbers. Use a list.

hi Tim, I'd use a list, but for example with my program for Depreciation of asset I need to present data as a table (4-6 columns), so I thought about matrix, more immediate than a list in this case...

For now, I'm presenting in another way the heading row of the matrix, then, a part of it, the matrix.

Thank you for help!

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
05-27-2015, 04:46 PM
Post: #4
 DrD Senior Member Posts: 1,095 Joined: Feb 2014
RE: matrix with strings in Home
It sounds like using the spreadsheet app could a solution.
05-27-2015, 04:48 PM
Post: #5
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: matrix with strings in Home
(05-27-2015 04:46 PM)DrD Wrote:  It sounds like using the spreadsheet app could a solution.

It's an idea, but for now I'm confused: I must export three tables...

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)