Matrix: how to make Matlab see all possible combinations

1 次查看(过去 30 天)
So the question is, can you have matlab read a matrix so it sees all combinations of numbers in just one variable for example
A=[2,3,5]
I want it to see it as
[2,3,5];[3,5,2];[5,2,3];[2,5,3];[3,2,5];[5,3,2]
So I don't have to retype as I did here, on my script I'm trying to write I'm using a much larger matrix, thank you for your time.

采纳的回答

Walter Roberson
Walter Roberson 2016-1-14
  1 个评论
Brandon Overman
Brandon Overman 2016-1-14
Thank you very much, I've been looking all over for this even been looking in my book with no such luck. Thank you.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by