What is difference between these two commands of MATLAB.

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

 Accepted Answer

Joseph Cheng
Joseph Cheng on 4 Feb 2016
Edited: Joseph Cheng on 4 Feb 2016
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.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!