MATLAB Answers

Create array Arr with 5 rows and 4 columns with each element = 5

2 views (last 30 days)
nty huy
nty huy on 26 Sep 2019
Edited: James Tursa on 26 Sep 2019
vArr = [ 5 6 7 8; 2 3 4 5 ; 2 3 4 5; 2 3 4 5; 2 3 4 5 ]
but what does it mean with each element = 5 all number has to be 5???

  0 Comments

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 26 Sep 2019
Edited: James Tursa on 26 Sep 2019
Yes. Replace all of your numbers with 5 and you will have it. E.g.,
Arr = [5 5 5 5; etc.
This is the hardest way to accomplish the result, but it does work.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags