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a2 b3 b1 b2 c3) (a2 b3 b2 b1 c3)
... 依此类推
请问列出所有状况的排序怎么写会比较好
内建的Function 也行但是好像有大小限制
目前只想到a阵列跟c阵列先排完
b阵列自己跟自己排完后再把两个结果展开结合
不过b阵列这边目前不知道该怎么写
现在是matlab新手有点苦脑
UPDATE:
不好意思修正了一下
之前漏打了c3的组合