How to obtain matrix with single value in one column?

조회 수: 3 (최근 30일)
Daniyar
Daniyar 2013년 3월 11일
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에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by