Table[Select[Tally[{2,2,2,1,8,8,7,4,9,8}], ToExpression[z]][[All,1]],{z,{"#[[2]]==1&","#[[2]]>1&"}}]
Mathematica 教學:挑出向量重複元素
由 戴忠淵 於 2016年8月22日星期一
上午9:47 發表
Table[Select[Tally[{2,2,2,1,8,8,7,4,9,8}], ToExpression[z]][[All,1]],{z,{"#[[2]]==1&","#[[2]]>1&"}}]
Copyright 2009 Engadget's Style - Design by FUNction, Ray Wei - Powered by Blogger
讀者回應 ( 0 意見 )
訂閱發佈留言 (Atom)
發佈留言
Please leave your name and tell me what you thought about this site. Comments, suggestions and views are welcomed.
如果這篇文章對你有幫助,那請留個訊息給我~