How to obtain matrix with single value in one column?

3 Ansichten (letzte 30 Tage)
Daniyar
Daniyar am 11 Mär. 2013
Hello,
How can I obtain the value p=2000 in matrix of one column and 41 rows?

Antworten (1)

John Petersen
John Petersen am 11 Mär. 2013
P = p*ones(41,1);

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by