How to obtain matrix with single value in one column?

4 views (last 30 days)
Hello,
How can I obtain the value p=2000 in matrix of one column and 41 rows?

Answers (1)

John Petersen
John Petersen on 11 Mar 2013
P = p*ones(41,1);

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!