How to make a NxM matrix with all the same value

2 views (last 30 days)
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 5x5 matrix of 200s.

Accepted Answer

Dan
Dan on 17 May 2012
That's how I would do it.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!