フィルターのクリア

How to create a long list using the same number?

16 ビュー (過去 30 日間)
Shane
Shane 2014 年 7 月 23 日
編集済み: Azzi Abdelmalek 2014 年 7 月 23 日
Simple question but can't find it anywhere. I need to make a long list of the number say, 59, a thousand times.
59
59
59
59 etc
What is the syntax to do this? Thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 23 日
編集済み: Azzi Abdelmalek 2014 年 7 月 23 日
repmat(59,1000,1)
%or
59*ones(1000,1)

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by