I have an array name time with 1 row and 1000 columns.
time=[5,6,7,2,8,1,3,9......]
I want to call randomly any values from that array. Following is my working algorithm.
time2=any random values from time
time3=any random values from time
time4=(time2+time3)/2
time5=any random value from time
common time=5;
time6=common time-time5;
time7=time1+time6
I have to store the values of time7 and have to repeat this process for 1000 times. That I can get the 1000 times time7 values.
How can I do this in MATLAB?
Aucun commentaire:
Enregistrer un commentaire