Declare a random column vector V with 500 entries

Answers (1)

Jan
Jan on 29 Jan 2018
Edited: Jan on 29 Jan 2018
Beside posting the direct solution, it is useful to know, how you can find such solutions efficiently by your own:
Instead of waiting 2 hours for an answer of the forum, you can search in the documentation also:
docsearch random
Even asking an internet search engine for "Matlab create random vector" is useful. You will find e.g.:
This mentions rand, randi, randn and randperm. For details see e.g.
doc rand

Asked:

on 29 Jan 2018

Edited:

Jan
on 29 Jan 2018

Community Treasure Hunt

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

Start Hunting!