Simple array outputing the same number of length(n)

4 ビュー (過去 30 日間)
Tanil
Tanil 2013 年 4 月 20 日
Hi, I am trying to create an array of 20 elements all 0.25 i.e.
A = 0.25 0.25 0.25 0.25 0.25 0.25 0.25 .... 0.25 of length 20
There must be a way without writing the array manually
Kind regards

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 20 日
A=0.25*ones(1,20)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by