MATLAB: What is difference between these two commands of MATLAB.

MATLAB

Please tell me difference between these two commands of MATLAB.
p = rand(N(k),2);
p = rand(100, N(k));

Best Answer

if you look up the documentation you'll see what the inputs mean. both will give you different P's of the input sizes m x n of random numbers between 0 and 1.