hello! I have values ​​0.421, I need to make a vector of 1200 values ​​of the same from it without a loop
% I need to do without a loop x=[​​0.421 ​​0.421 ​​0.421 ​​0.421 ...]

 採用された回答

Bruno Luong
Bruno Luong 2020 年 7 月 21 日
編集済み: Bruno Luong 2020 年 7 月 21 日

0 投票

One way (among many)
x = 0.421 + zeros(1,1200)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

質問済み:

2020 年 7 月 21 日

編集済み:

2020 年 7 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by