Post Reply 
Access Matrix by row or column
12-29-2017, 02:45 PM
Post: #6
RE: Access Matrix by row or column
(12-28-2017 08:19 PM)JMB Wrote:  
(12-28-2017 11:26 AM)Stevetuc Wrote:  .....
Actually, for a 2D Matrix, just using A(1) will select the 1st row ,but how to fo this for a column? I tried A(:,1) but this errors.

You can use negative values to select columns: A(-1) selects the 1st column

Thanks, thats concise syntax!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Access Matrix by row or column - Stevetuc - 12-28-2017, 11:26 AM
RE: Access Matrix by row or column - JMB - 12-28-2017, 08:19 PM
RE: Access Matrix by row or column - Stevetuc - 12-29-2017 02:45 PM



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