Post Reply 
Command needed for striping brackets
02-22-2021, 12:02 AM (This post was last modified: 02-22-2021 12:07 AM by Didier Lachieze.)
Post: #9
RE: Command needed for striping brackets
Btw, head({8}) returns 8 and head([9]) returns 9

(02-20-2021 10:47 PM)essen Wrote:  It seems an odd behavior to me, why, when using the SUB command on a numerical value clamped in list - or vector - brackets, leaves it the same (not stripping these brackets).

Regarding SUB, it extracts a subset of a list or of a matrix/vector. As such and to be consistent it returns a list or a matrix/vector even if there is only one element.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Command needed for striping brackets - Didier Lachieze - 02-22-2021 12:02 AM



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