In Haskell, if I wanted to get a 10 element list which only contained the number 5, I could do something like this:
take 10 $ repeat 5
Output:
[5,5,5,5,5,5,5,5,5,5]
Is there anything like this in Matlab?
See Question&Answers more detail:os