number permutate without permutation

how can i permutate numbers without using P=perms(v) function

2 个评论

Why can't you use the perms function? Is this homework?

请先登录,再进行评论。

回答(1 个)

per isakson
per isakson 2020-5-22
编辑:per isakson 2020-5-22
Steps to find a substitute for perms without perms
  1. Lookup perms in the documenttion, perms, All possible permutations
  2. See "See also:" in the bottom of the page and notice randperm. (Luckily there is something that looks relevant to your problem.)
  3. Lookup randperm ....

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by