m=4;

n=2;

r=randi([-5 5],[m,n])

With the above code I can get only integer values. This is because I am using randi function which generates integer only. I would like to know is there any way of generating floating point numbers randomly?

More Anjali Dewangan's questions See All
Similar questions and discussions