the scheduling problem must vary the elements row wise based on random numbers generated

p=[5 4 3;3 2 1;6 5 3;4 3 2]
q=rand(4,3);
based on the rank of random numbers generated in q the values in p matrix must be interchanged row-wise. please help

This question is closed.

Asked:

on 5 Jun 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!