creating variable of specified length and same values

 採用された回答

その他の回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 15 日
編集済み: Azzi Abdelmalek 2013 年 11 月 15 日

0 投票

a=1.2;
a=a(ones(1,4))
%or
a=repmat(1.2,1,4)

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

タグ

タグが未入力です。

質問済み:

2013 年 11 月 15 日

回答済み:

ES
2013 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by