write a program that creates a data set matrix of real numbers with a size of 10000 X 4 where each element is between -100 and 100 in size. Here is a partial example:

1 view (last 30 days)
Write a program that creates a data set matrix of real numbers with a size of 10000 X 4 where each element is between -100 and 100 in size. Here is a partial example:
M =
-98.1582 19.4765 -68.8456 3.9074
13.8492 39.9856 72.0272 -57.8941
19.7625 -31.5866 -83.6175 22.5648
7.5571 -36.8443 -93.9813 -30.9987
-76.5710 -34.4167 -20.5149 79.9511
-36.2071 -18.6431 2.2775 -72.2470
-0.0191 -61.5494 32.8980 1.1866
-69.4575 56.4274 -30.9396 -40.2943
35.6457 -1.9173 -18.6166 -92.8042
-47.9353 -16.0275 -93.9745 50.6888
and so on…
Can someone please help me?

Accepted Answer

David Hill
David Hill on 8 Apr 2020
x=(2*rand(10000,4)-1)*100;

More Answers (0)

Categories

Find more on Function Creation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!