If I have a desired vector u=[3 1 5 105 155 50].
Now I want to genrate 10 random vectors of the same size as above u. Then I want to get one of those random vectors which is nearly equal to u and has the same arrangment of elements as that of my desired vector u.
i.e. if one of those generated vector is say for example [1.001 2.99 4.999 154.999 105.001 49.999]. This is nearly equal to my above desired vector u but the arrangement of elements of this vector is not the same as that of my u vector. So I want to get it in the same arrangement of elements as that of my u vector. How can we do this?
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/602632-how-to-get-a-random-vector-whose-elements-arrangement-is-the-same-as-that-of-my-desired-vector#comment_1032823
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/602632-how-to-get-a-random-vector-whose-elements-arrangement-is-the-same-as-that-of-my-desired-vector#comment_1032823
Sign in to comment.