Assigning value in array

I want to create an array of size 100 all the with the value 50 in it.
Please tell me how to do it

 採用された回答

Mate 2u
Mate 2u 2011 年 2 月 10 日

0 投票

when i use this for large arrays I get
??? Maximum variable size allowed by the program is exceeded.

3 件のコメント

Vieniava
Vieniava 2011 年 2 月 10 日
what is your array size???
Mate 2u
Mate 2u 2011 年 2 月 10 日
360214x1, should not be problem as I already have many huge arrays
Mate 2u
Mate 2u 2011 年 2 月 10 日
MyHuge=MM*ones(LLL,'single');
MM =4400 and LLL=360214
I was not meant to accept answer
??? Error using ==> ones
Maximum variable size allowed by the program is exceeded.

サインインしてコメントする。

その他の回答 (1 件)

Mate 2u
Mate 2u 2011 年 2 月 10 日

0 投票

any other method? Fast method would be preferred.

カテゴリ

タグ

質問済み:

2011 年 2 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by