MATLAB: How to make a matrix of the own dimensions and contents

matrix

How can I make a 96×577 matrix that contains random values from -2.8412 to 4.7153

Best Answer

  • One approach:
    r = 96;
    c = 577;
    M = (4.7153 + 2.8412) * rand(r,c) - 2.8412;