How to generate random 1x8 integer matrices without repeating numbers in Simulink?

Hey, i want to generate random matrices or series with numbers of 1 to 8, by using simulink blocks.
For example:
[3,2,7,4,1,5,8,6] , [1,2,6,7,4,8,5,3] ........
Any advice will be very helpful.
Thnx

 Réponse acceptée

If you have Communications System Toolbox, you can use the random integer block. If you do not have Communications System Toolbox, how about including randi in a MATLAB function block?

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by