make a vector from one value
53 ビュー (過去 30 日間)
古いコメントを表示
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 ...]
0 件のコメント
採用された回答
Bruno Luong
2020 年 7 月 21 日
編集済み: Bruno Luong
2020 年 7 月 21 日
One way (among many)
x = 0.421 + zeros(1,1200)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!