Generate a 1-by-10 vector p whose elements are random numbers.

1 view (last 30 days)
Generate a 1-by-10 vector p whose elements are random numbers.

Answers (1)

gonzalo Mier
gonzalo Mier on 23 Oct 2018
p=rand(1,10)
  1 Comment
John D'Errico
John D'Errico on 23 Oct 2018
Please don't just post answers to an obvious homework problem. It does not help the student, and it convinces them that Answers is here to do their homework for them.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!