MATLAB: How to make a NxM matrix with all the same value

basic

Hey Guys,
So if I want to make a matrix measureing NxM all containing the same value, what's the most succinct way of doing that. I was thinking something like: ones(5,5)*200 to make a 5×5 matrix of 200s.

Best Answer

That's how I would do it.