フィルターのクリア

make a vector from one value

20 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2020 年 7 月 21 日
編集済み: Bruno Luong 2020 年 7 月 21 日
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 日
One way (among many)
x = 0.421 + zeros(1,1200)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by