Post Reply 
Create a matrix
01-26-2019, 12:00 PM (This post was last modified: 01-26-2019 12:37 PM by JMB.)
Post: #2
RE: Create a matrix
Try:
MAKEMAT(IFTE(I=J,2,IFTE(J=I-1 OR J=I+1,-1,0)),5,5)
Or:
MAKEMAT(IFTE(I=J,2,IFTE(ABS(I-J)=1,-1,0)),5,5)

Josep Mollera. HP PRIME, HW: C, SW: 2.2.15157 (2024-09-01).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Create a matrix - DrD - 01-26-2019, 11:19 AM
RE: Create a matrix - JMB - 01-26-2019 12:00 PM
RE: Create a matrix - DrD - 01-26-2019, 03:18 PM
RE: Create a matrix - JMB - 01-26-2019, 05:49 PM



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