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.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!