Post Reply 
Flatten a Matrix
10-09-2014, 04:05 AM
Post: #2
RE: Flatten a Matrix
(10-09-2014 03:04 AM)dalupus Wrote:  First I was looking for some kind of function that would tell me if my matrix had any 0's but couldn't find anything.

So I decided to just make a contains function but I wanted to make it work for lists,vectors and matrices but I couldn't find any way to flatten a matrix or turn it into a list.

Any suggestions?

mat2list([[1,2],[3,4]]) --> {1,2,3,4}.
Therefore, ΠLIST(mat2list(matrix)) returns 0 if any matrix elements are zero.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Flatten a Matrix - dalupus - 10-09-2014, 03:04 AM
RE: Flatten a Matrix - Joe Horn - 10-09-2014 04:05 AM
RE: Flatten a Matrix - DrD - 10-09-2014, 12:49 PM
RE: Flatten a Matrix - dalupus - 10-09-2014, 02:17 PM



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