How to obtain matrix with single value in one column?

1 次查看(过去 30 天)
Hello,
How can I obtain the value p=2000 in matrix of one column and 41 rows?

回答(1 个)

John Petersen
John Petersen 2013-3-11
P = p*ones(41,1);

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by